()
| 441 | } |
| 442 | |
| 443 | async stop(): Promise<void> { |
| 444 | if (this.wss) { |
| 445 | for (const client of this.wss.clients) { |
| 446 | client.close(); |
| 447 | } |
| 448 | this.wss.close(); |
| 449 | this.wss = null; |
| 450 | } |
| 451 | this.socketsByChannel.clear(); |
| 452 | console.log("[WebAdapter] Stopped"); |
| 453 | } |
| 454 | |
| 455 | async sendMessage(channelId: string, text: string): Promise<void> { |
| 456 | const sockets = this.socketsByChannel.get(channelId); |
nothing calls this directly
no outgoing calls
no test coverage detected