(chatId: string, eventType: string, data: any)
| 141 | } |
| 142 | |
| 143 | streamCustomEvent(chatId: string, eventType: string, data: any) { |
| 144 | const clientResponse = { |
| 145 | event: eventType, |
| 146 | data: data |
| 147 | } |
| 148 | this.safeWrite(chatId, 'message:\ndata:' + JSON.stringify(clientResponse) + '\n\n') |
| 149 | } |
| 150 | |
| 151 | streamStartEvent(chatId: string, data: string) { |
| 152 | const client = this.clients.get(chatId) |
no test coverage detected