I asked a question at Stackoverflow, https://stackoverflow.com/questions/48908841/play-socket-io-and-usage-of-session-id . I think the library should come with a solution because it's very confusing now to use Flows with dynamic number of sockets.