(channelId)
| 138 | } |
| 139 | |
| 140 | function closeChannel(channelId) { |
| 141 | const socket = socketsByChannelId[channelId]; |
| 142 | if (socket) { |
| 143 | socket.destroy(); |
| 144 | delete socketsByChannelId[channelId]; |
| 145 | } |
| 146 | } |
| 147 | |
| 148 | function receiveChannelData(channelId, payload) { |
| 149 | let socket = socketsByChannelId[channelId]; |
no outgoing calls
no test coverage detected