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

Function log

examples/chat/public/main.js:69–72  ·  view source on GitHub ↗
(message, options)

Source from the content-addressed store, hash-verified

67
68 // Log a message
69 const log = (message, options) => {
70 const $el = $('<li>').addClass('log').text(message);
71 addMessageElement($el, options);
72 }
73
74 // Adds the visual chat message to the message list
75 const addChatMessage = (data, options = {}) => {

Callers 2

addParticipantsMessageFunction · 0.70
main.jsFile · 0.70

Calls 2

addMessageElementFunction · 0.70
$Function · 0.50

Tested by

no test coverage detected