Encodes and frames a single packet
Emitted when a packet containing a (Transport error)[https://core.telegram.org/mtproto/mtproto-transports#transport-errors] is encountered.
Optional
setupFor codecs that use crypto functions and/or logging. This method is called before any other.
Initial tag of the codec. Will be sent immediately once connected.
Interface declaring handling of received packets. When receiving a packet, its content is sent to feed(), and codec is supposed to emit
packet
orerror
event when packet is parsed.