Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EngineIOV4Parser ¶
type EngineIOV4Parser struct {
// contains filtered or unexported fields
}
func NewEngineIOV4Parser ¶ added in v0.2.0
func NewEngineIOV4Parser(options ...ParserOption) (*EngineIOV4Parser, error)
NewEngineIOV4Parser builds a parser with the given options. With no options it is equivalent to &EngineIOV4Parser{} and uses the default limits.
func (*EngineIOV4Parser) Parse ¶
func (p *EngineIOV4Parser) Parse(data []byte) (*engineio_v4.Message, error)
func (*EngineIOV4Parser) Serialize ¶
func (p *EngineIOV4Parser) Serialize(msg *engineio_v4.Message) ([]byte, error)
type ParserOption ¶ added in v0.2.0
type ParserOption func(*EngineIOV4Parser) error
ParserOption configures an EngineIOV4Parser built with NewEngineIOV4Parser.
func WithMaxSerializeSize ¶ added in v0.2.0
func WithMaxSerializeSize(size int64) ParserOption
WithMaxSerializeSize sets the maximum outbound payload size (in bytes) accepted by Serialize(). The size must be positive.