added web socket code to detect when other user is typing