sta / websocket-sharp

A C# implementation of the WebSocket protocol client and server
http://sta.github.io/websocket-sharp
MIT License
5.72k stars 1.66k forks source link

How to connect to Socket IO room ? #531

Open mridah opened 5 years ago

mridah commented 5 years ago

How can connect to a room on socket IO

I can connect to a socket IO server using the code

ws = new WebSocket("ws://192.168.0.45:3030/socket.io/?EIO=2&transport=websocket");
ws.Connect();

And how can I get a particular message ( like socket.on('eventName', { }) in JS ) ?

Also how can use timeout, autoconnect, max retries ?? @zzattack @sta @jhovgaard @davidburhans @Liryna

ghost commented 5 years ago

No offense, but you should use uws or ws for websocket servers instead. Not trying to slam your usage of Socket.IO, but It'd be a bit nicer to use a more helpful way of servers in JS.

EDIT: Please don't touch uWebsockets.js.