rickyrauch / Balloons.IO

Balloons.IO is a web multi-room chat server and client ready to use. It’s built with the help of node.JS, Express, Socket.IO and Redis. Balloons uses PassportJS for authentication with Twitter and Facebook
http://balloons.io
2.37k stars 493 forks source link

Entering and leaving a room on same socket #82

Closed ghost closed 11 years ago

ghost commented 11 years ago

I see that you guys implemented this to do a full page refresh when changing rooms. I was wondering if you had played with the socket.join and socket.leave When I use leave, it does leave the room, but when I go back with another .join and then send a message from another client, I receive two emit messages. Was wondering if this is a bug.

cristiandouce commented 11 years ago

We do .join and .leave. But also we keep track of every user by an internal id and try to handle this issue.

@laffster Could you give detailed picture of your particular issue?