prashker / PrashFour

Web Based IRC Client + Bouncer Functionality
0 stars 0 forks source link

Multiple windows of the same login cannot see SELF messages #68

Closed prashker closed 11 years ago

prashker commented 11 years ago

If you're logged in in 2 windows (aka seeing the same stuff), your own messages aren't transferred to the other instance.

The reason is because messages you send aren't broadcast/handled by the server the same way other peoples messages are.

Other Peoples Messages: Sent to all sockets Self: Sent to its own socket (handled specifically).

Might need to look into a way to force this, but then again, it's kind of broken to have two of the same window...

prashker commented 11 years ago

The issue is when a socket 'connect''s, it adds the socket to the active connection, which ideally means we should be able to loop through all the sockets and emit the message out, however doing it just gave triple messages to the same socket, so we'll have to keep testing...might not be done in time

prashker commented 11 years ago

Found out the issue, fixed.