engineio_v4_parser

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2026 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL