(data: string)
| 229 | } |
| 230 | |
| 231 | const doWrite = (data: string) => { |
| 232 | const compress = packets.some((packet) => { |
| 233 | return packet.options && packet.options.compress; |
| 234 | }); |
| 235 | this.write(data, { compress }); |
| 236 | }; |
| 237 | |
| 238 | if (this.protocol === 3) { |
| 239 | (this.parser as typeof parser_v3).encodePayload( |