You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've explored this issue too and found the following code works:
// Gets the 'X is typing' messages of a user
const getTypingMessages = (data) => {
return $('.message.typing').filter(function(i) {
return $(this).data('username') === data.username;
});
}
Does anybody know why '=>' syntax does not work here?
socket.io/examples/chat/public/main.js
Line 111 in e0b2cb0
getTypingMessages function doesn't return typing elements. So it should be fixed like this:
The text was updated successfully, but these errors were encountered: