connectClient method
Implementation
@internal
GameClient connectClient(ServerClient client) {
final socket = GameClient(this, client);
emit(ServerEvent.connection, socket);
if (client.readyState == ReadyState.open) {
_sockets[socket.id] = socket;
socket.onConnect();
emit(ServerEvent.connect, [name, socket.id]);
}
return socket;
}