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

I'm trying to detect when a new user joins the chat room after you've entered. I've tried a few things but I can't seem to figure out what functions are called.

I've tried replacing this function (Thanks Monchoman), but the Alert doesn't fire: NodeRoomController.prototype.onJoin = function (message) { var joinedUser = new models.User; joinedUser.mport(message.joinData); var connectedUser = this.model.users.findByName(joinedUser.get('name')); if(typeof connectedUser == "undefined"){ this.model.users.add(joinedUser); this.fire('afterJoin', joinedUser); //TODO: move it to other class if( !this.isPrivate ) { // Create the inline-alert (on client side so that we only display it if the user actually IS new to the room and not just disconnecting/reconnecting). var newChatEntry = new models.InlineAlert({text: $.msg('chat-user-joined', [joinedUser.get('name')] ) }); this.model.chats.add(newChatEntry); }			this.disableRoom(joinedUser, false); } else { // The user is already in the room... just update them (in case they have changed). this.model.users.remove(connectedUser); this.model.users.add(joinedUser); }		alert("Test!"); } Anyone have an idea where to even begin on this?  