engineio_v4

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: 0 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 EngineIOPacket

type EngineIOPacket byte
const (
	PacketOpen    EngineIOPacket = 0x00
	PacketClose   EngineIOPacket = 0x01
	PacketPing    EngineIOPacket = 0x02
	PacketPong    EngineIOPacket = 0x03
	PacketMessage EngineIOPacket = 0x04
	PacketUpgrade EngineIOPacket = 0x05
	PacketNoop    EngineIOPacket = 0x06
)

type EngineIOTransport

type EngineIOTransport string
const (
	TransportPolling   EngineIOTransport = "polling"
	TransportWebsocket EngineIOTransport = "websocket"
)

type Frame added in v0.2.0

type Frame struct {
	Data     []byte
	IsBinary bool
}

Frame is a single engine.io frame as delivered from a transport to the engine.io client. IsBinary distinguishes a binary attachment (websocket binary frame, or a base64 "b"-prefixed record over HTTP long-polling) from a regular UTF-8 text frame. The zero value (IsBinary == false) is a text frame, which keeps existing transports backward compatible.

type HandshakeResponse

type HandshakeResponse struct {
	Sid          string   `json:"sid"`
	Upgrades     []string `json:"upgrades,omitempty"`
	PingInterval int      `json:"pingInterval,omitempty"`
	PingTimeout  int      `json:"pingTimeout,omitempty"`
}

type Message

type Message struct {
	Force *bool
	Type  EngineIOPacket
	Data  []byte
	// Binary marks a PacketMessage whose Data is a raw binary attachment
	// (engine.io v4 binary payload). Text packets leave it false, preserving
	// the previous behavior for every non-binary frame.
	Binary bool
}

Directories

Path Synopsis
mocks
Package mock_engineio_v4_client is a generated GoMock package.
Package mock_engineio_v4_client is a generated GoMock package.
transport/polling/mocks
Package mock_engineio_v4_client_transport is a generated GoMock package.
Package mock_engineio_v4_client_transport is a generated GoMock package.
transport/websocket/mocks
Package mock_engineio_v4_client_transport is a generated GoMock package.
Package mock_engineio_v4_client_transport is a generated GoMock package.

Jump to

Keyboard shortcuts

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