I am a student studying Node.js. I'm creating a game server as a project this time, and when the client accesses the authentication session server and the authentication is completed, I want to hand over the socket connected to the authentication session to the game server. Thank you for reading it.
Previously, authentication and game server were combined into one. I wanted to introduce the concept of a distributed server this time, so I was looking into it, but it was difficult to find the data in the way I wanted.
You Can’t Do That™. Connected sockets belong to processes. You’ll need to feed the client some kind of authentication token and have it reconnect to the second server.