()
| 275 | counter = 0; |
| 276 | |
| 277 | resetCompression() { |
| 278 | this.counter = 0; |
| 279 | this.compression = new Shorty(); |
| 280 | this.conn.send('shorty'); |
| 281 | } |
| 282 | |
| 283 | send(data: any) { |
| 284 | let payload = typeof data === 'string' ? data : JSON.stringify(data, serializer(false, this)); |