Board Thread:Support Requests - Getting Technical/@comment-4748628-20140720195504/@comment-24473195-20160802121407

Dessamator wrote: I was wondering do you happen to know about the inverse, when a user leaves a chat, is there any function that takes care of that?

Also, is it possible to store anything on the chat server temporarily(till chat server exits), e.g. an array or something? Wow, searching for this again "years" later leads me to the same thread. Anyway, necroposting for future readers (and maybe my future self). This code snippet allows one to determine when a user is disconnected or logs out: function userLogOut(data) console.log("New user Joined!") end mainRoom.socket.bind('logout',$.proxy(userLogOut,mainRoom));

The trick here is using the "logout" event to detect this.