Documentation
¶
Index ¶
Constants ¶
View Source
const ProtocolVersion = 5
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Finish ¶
type Finish func(header *PacketHeader, eventName string, decode Decode)
type PacketHeader ¶
type PacketHeader struct { Type PacketType Namespace string ID *uint64 Attachments int }
func (*PacketHeader) IsAck ¶
func (p *PacketHeader) IsAck() bool
func (*PacketHeader) IsBinary ¶
func (p *PacketHeader) IsBinary() bool
func (*PacketHeader) IsEvent ¶
func (p *PacketHeader) IsEvent() bool
type PacketType ¶
type PacketType byte
const ( PacketTypeConnect PacketType = iota PacketTypeDisconnect PacketTypeEvent PacketTypeAck PacketTypeConnectError PacketTypeBinaryEvent PacketTypeBinaryAck )
func (*PacketType) FromChar ¶
func (p *PacketType) FromChar(b byte) error
func (PacketType) ToChar ¶
func (p PacketType) ToChar() byte
Click to show internal directories.
Click to hide internal directories.