Search code examples
iosclient-servergksession

Both as a client and a server with GKSession


Can I implement two GKSession, one as a client and the other as a server at the same time? Is there a problem or any limitation to implement this connection with WiFi and Bluetooth? Thanks!


Solution

  • GKSessionModePeer seems only can connect to another peer. But I need to build up more complex network structure. So I finally created two different sessions for both GKSessionModeServer and GKSessionModeClient. And it can exist at the same time.