(clientId)
| 63 | let nextClientId = 0; |
| 64 | |
| 65 | function getClientWs(clientId) { |
| 66 | const clientWs = clients.get(clientId); |
| 67 | if (clientWs === undefined) { |
| 68 | throw `could not find id "${clientId}" while forwarding request`; |
| 69 | } |
| 70 | return clientWs; |
| 71 | } |
| 72 | |
| 73 | function handleSendBroadcast(broadcasterId, message) { |
| 74 | const forwarded = { |
no test coverage detected
searching dependent graphs…