(connectionIds: readonly string[], data: Buffer)
| 257 | } |
| 258 | |
| 259 | public sendToClients(connectionIds: readonly string[], data: Buffer): readonly SendResult[] { |
| 260 | const results = connectionIds.map((connectionId) => |
| 261 | this.sendToClient(connectionId, data) |
| 262 | ); |
| 263 | |
| 264 | const successCount = results.filter((result) => result.success).length; |
| 265 | const totalCount = results.length; |
| 266 | |
| 267 | this.log(`Sent ${data.length} bytes to ${successCount}/${totalCount} specified clients`); |
| 268 | |
| 269 | return results; |
| 270 | } |
| 271 | |
| 272 | public getActiveConnectionIds(): readonly string[] { |
| 273 | return Array.from(this.connections.keys()); |
nothing calls this directly
no test coverage detected