|
|
@ -34,6 +34,7 @@ function app(socket) {
|
|
|
|
if (this.socket && this.socket.readyState === WebSocket.OPEN) {
|
|
|
|
if (this.socket && this.socket.readyState === WebSocket.OPEN) {
|
|
|
|
clearTimeout(this.typingTimeout);
|
|
|
|
clearTimeout(this.typingTimeout);
|
|
|
|
const userId = document.getElementById('userId').textContent.trim();
|
|
|
|
const userId = document.getElementById('userId').textContent.trim();
|
|
|
|
|
|
|
|
console.log(userId);
|
|
|
|
const data = { event_type: 'typing', user_id: userId};
|
|
|
|
const data = { event_type: 'typing', user_id: userId};
|
|
|
|
this.socket.send(JSON.stringify(data));
|
|
|
|
this.socket.send(JSON.stringify(data));
|
|
|
|
|
|
|
|
|
|
|
|