emile 10 months ago
parent 10d647cebb
commit ae04e28e0f

Binary file not shown.

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

Loading…
Cancel
Save