nhn / socket.io-client-unity3d

socket.io-Client for Unity3D, which is compatible with socket.io v1.x
Other
167 stars 42 forks source link

No ability to pass EmitEvent, ListenEvent etc. as templates to Server.of(...) method #41

Open Specyk opened 2 years ago

Specyk commented 2 years ago

You can do assign types to .emit(..) and .event(..) by template constructor like this: const socketServer = new Server<ServerToClientEvents, ClientToServerEvents, InterServerEvents, SocketData>("chat"); but it's missing ability to do like this: socketServer.of<ServerToClientEvents, ClientToServerEvents, InterServerEvents, SocketData>("/myNamespace")