(data: string)
| 267 | } |
| 268 | |
| 269 | const doWrite = (data: string) => { |
| 270 | const compress = packets.some((packet) => { |
| 271 | return packet.options && packet.options.compress; |
| 272 | }); |
| 273 | this.write(data, { compress }); |
| 274 | }; |
| 275 | |
| 276 | if (this.protocol === 3) { |
| 277 | (this.parser as typeof parser_v3).encodePayload( |