Versions in this module Expand all Collapse all v0 v0.0.1 Nov 16, 2022 Changes in this version + const Protocol + func HasBinary(data interface{}) bool + func IsBinary(data interface{}) bool + func NewBinaryReconstructor(packet *Packet) *binaryreconstructor + type Decoder interface + Add func(interface{}) error + Destroy func() + func NewDecoder() Decoder + type Encoder interface + Encode func(*Packet) []types.BufferInterface + func NewEncoder() Encoder + type Packet struct + Attachments *uint64 + Data interface{} + Id *uint64 + Nsp string + Type PacketType + func DeconstructPacket(packet *Packet) (pack *Packet, buffers []types.BufferInterface) + func ReconstructPacket(data *Packet, buffers []types.BufferInterface) (_ *Packet, err error) + type PacketType byte + const ACK + const BINARY_ACK + const BINARY_EVENT + const CONNECT + const CONNECT_ERROR + const DISCONNECT + const EVENT + func (t PacketType) String() string + func (t PacketType) Valid() bool + type Parser interface + Decoder func() Decoder + Encoder func() Encoder + func NewParser() Parser + type Placeholder struct + Num int + Placeholder bool