MCPcopy
hub / github.com/socketio/socket.io / getTypingMessages

Function getTypingMessages

examples/chat/public/main.js:169–173  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

167
168 // Gets the 'X is typing' messages of a user
169 const getTypingMessages = (data) => {
170 return $('.typing.message').filter(function (i) {
171 return $(this).data('username') === data.username;
172 });
173 }
174
175 // Gets the color of a username through our hash function
176 const getUsernameColor = (username) => {

Callers 2

addChatMessageFunction · 0.70
removeChatTypingFunction · 0.70

Calls 1

$Function · 0.50

Tested by

no test coverage detected