(data: any)
| 204 | } |
| 205 | |
| 206 | async sendJson(data: any) { |
| 207 | const serialized = encodeText(JSON.stringify(data)); |
| 208 | return this.send(new Uint8ArrayBody(serialized, "application/json")); |
| 209 | } |
| 210 | |
| 211 | async sendText(data: string) { |
| 212 | const encoded = encodeText(data); |
nothing calls this directly
no test coverage detected