engineio

package
v4.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteByte

func WriteByte(w io.Writer, t PacketType, p []byte) (int, error)

func WriteTo

func WriteTo(w io.Writer, t PacketType, arg ...interface{}) (int64, error)

Types

type ConnParameters

type ConnParameters struct {
	PingInterval time.Duration
	PingTimeout  time.Duration
	SID          string
	Upgrades     []string
	MaxPayload   int
}

func (ConnParameters) ToJson

func (p ConnParameters) ToJson() jsonParameters

type PacketType

type PacketType int
const (
	OPEN PacketType = iota
	CLOSE
	PING
	PONG
	MESSAGE
	UPGRADE
	NOOP
)

func (PacketType) String

func (id PacketType) String() string

Jump to

Keyboard shortcuts

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