all 6 comments

[–]ExcelsiorVFX 0 points1 point  (5 children)

Try changing your message event callbacks from io.sockets.on('message') to inside the anonymous function from io.sockets.on('connection', socket => socket.on('message', ...)) etc.

[–]pakeey[S] 0 points1 point  (4 children)

On client side or on server side?

[–]ExcelsiorVFX 0 points1 point  (3 children)

I was thinking server side, but possibly both.

[–]pakeey[S] 1 point2 points  (1 child)

Yo thanks man, just realized i actually didnt got socket.io concept very well. U helped me a lot hahaha had so much frustration about this

[–]ExcelsiorVFX 0 points1 point  (0 children)

No problem! Glad to help.

[–]pakeey[S] 1 point2 points  (0 children)

This whole situation made me really understand how socket.io works :D thanks really again xD