(msg, source)
| 28 | } |
| 29 | |
| 30 | function userBroadcast(msg, source) { |
| 31 | const sourceMsg = `> ${msg}`; |
| 32 | const name = `{cyan-fg}{bold}${source.name}{/}`; |
| 33 | msg = `: ${msg}`; |
| 34 | for (const user of users) { |
| 35 | const output = user.output; |
| 36 | if (source === user) |
| 37 | output.add(sourceMsg); |
| 38 | else |
| 39 | output.add(formatMessage(name, output) + msg); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | function localMessage(msg, source) { |
| 44 | const output = source.output; |
no test coverage detected
searching dependent graphs…