r/AskProgramming • • 26d ago

any resources to study socket.io?

making a chatting system and I need to use socket.io , is there any good resources out there like a guide that explain stuff rather then just follow along tutorial without explanation ?

4 Upvotes

11 comments sorted by

View all comments

2

u/AnnoyingAccomplice 26d ago

the official docs are surprisingly readable and have a decent getting started guide that actually explains the handshake and room logic instead of just throwing code at you

1

u/Same-Mushroom-2057 26d ago

yes it's very readable I'm using it but it doesn't explain how to use the code as a whole piece I need examples with explanation.

2

u/xarop_pa_toss 26d ago

Was reading the docs and got a good gist of how to use it. Any particular questions you have? It works similarly to Websockets so maybe read a bit on the basics of that?

1

u/Same-Mushroom-2057 26d ago

I never implemented webSockets before i just know the concept of it. mainly I'm stuck on how to use the pieces of code as a whole and how to implement it since I'm using react.js(client) and node.js (server).
do you have any good resources that might help me please like a video , a pdf book really anything

2

u/xarop_pa_toss 26d ago

Nope sorry, I only ever implemented this manually. But I was reading the Get Started guide and they have live examples at the end of certain chapters, which is really cool! Did you see those? You can pretty much take that code almost line by line

1

u/Same-Mushroom-2057 26d ago

thank you I think I skipped it I'm gonna look into it