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

Function getTypingMessages

examples/cluster-haproxy/server/public/main.js:173–177  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

171
172 // Gets the 'X is typing' messages of a user
173 function getTypingMessages (data) {
174 return $('.typing.message').filter(function (i) {
175 return $(this).data('username') === data.username;
176 });
177 }
178
179 // Gets the color of a username through our hash function
180 function getUsernameColor (username) {

Callers 2

addChatMessageFunction · 0.70
removeChatTypingFunction · 0.70

Calls 1

$Function · 0.50

Tested by

no test coverage detected