I am trying to setup socket.io chat server. I have gotten it up to send and receive message from server and client. I was interested in showing users if some one is typing. I kn
function typingtimeoutFunction (){ socket.emit('typingMessage', 'stopped typing'); }, onKeyDownNotEnter: function (){ clearTimeout(this.typingtimeout); socket.emit('typingMessage', 'istyping'); this.typingtimeout = setTimeout(function() {ajaxChat.typingtimeoutFunction();}, 5000); },