SocketIOSharp icon indicating copy to clipboard operation
SocketIOSharp copied to clipboard

Add namespace feature SocketIOConnection.

Open ghqian opened this issue 3 years ago • 0 comments

Reason: When you use url like http://localhost:3000/ the socket.io client will create a websocket transport url like ws://localhost:3000/socket.io. It will work fine. But when you have url like http://localhost:3000/march, then the websocket transport url is also ws://localhost:3000/socket.io but with namespace "/march". And onConnection event in client may need connect signal for namespace "/" and also "/march". After then the emit from server can use namespace "/march" in its packets, and the client will react to namespace "/march" emit.

ghqian avatar Feb 02 '22 14:02 ghqian