Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { Compress bool `json:"compress" mapstructure:"compress" msgpack:"compress"` WsPreEncoded types.BufferInterface `json:"wsPreEncoded,omitempty" mapstructure:"wsPreEncoded,omitempty" msgpack:"wsPreEncoded,omitempty"` WsPreEncodedFrame types.BufferInterface `json:"wsPreEncodedFrame,omitempty" mapstructure:"wsPreEncodedFrame,omitempty" msgpack:"wsPreEncodedFrame,omitempty"` }
type Packet ¶
type Packet struct { Type Type `json:"type" mapstructure:"type" msgpack:"type"` Data io.Reader `json:"data,omitempty" mapstructure:"data,omitempty" msgpack:"data,omitempty"` Options *Options `json:"options,omitempty" mapstructure:"options,omitempty" msgpack:"options,omitempty"` // Deprecated: this method will be removed in the next major release, please use [Options.WsPreEncoded] instead. WsPreEncoded types.BufferInterface }
Click to show internal directories.
Click to hide internal directories.