Updated onDetectUserTyping to use method App.socket.transmit for consistency.