rtoal/ktah — Issue #8: Implement joining and parting on chat
Author: rowedonalde
Created: 2011-10-13 17:34:50+00:00
State: open

The server needs to send messages to chatters to notify them when another user joins or leaves. Presently, joining is handled by the client making a request to /chatjoin on page load, and parting is handled on unload. The former seems to have no inherent issues, but this method of parting poses the following problem: the unload event may not always fire. Perhaps I can handle this issue by creating a timeout for the server's responses to the clients' requests--if the server responds to a client's request but does not get a successive request (or the server's response get the equivalent of a 404 or whatever), the server parts the user automatically.