Saturday, 3 June 2017

Need some indications about websocket

i'm building a chat application using express & mongodb on the backend, so far i created routes that would allow users to send messages between themselves, add each other to friends, update their status etc... a lot of stuff going on here.

Now i would like things to be in real time and i am most likely going to use socket.io, the problem is that i have never worked with websocketes and to my understanding it send data between users using their socket id (or something similar). i am not sure if i will be able to use it because following the structure i used, users send messages to conversation (can be private or like a room) not directly to other users, is this alright or is it gonna be make things harder ?

Any indication / help would be appreciated



via Mehdi.G

No comments:

Post a Comment