MCPcopy Create free account
hub / github.com/mscdex/ssh2 / formatMessage

Function formatMessage

examples/server-chat.js:23–28  ·  view source on GitHub ↗
(msg, output)

Source from the content-addressed store, hash-verified

21const users = [];
22
23function formatMessage(msg, output) {
24 output.parseTags = true;
25 msg = output._parseTags(msg);
26 output.parseTags = false;
27 return msg;
28}
29
30function userBroadcast(msg, source) {
31 const sourceMsg = `> ${msg}`;

Callers 3

userBroadcastFunction · 0.85
localMessageFunction · 0.85
server-chat.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…