package
Version:
v0.0.5
Opens a new window with list of versions in this module.
Published: Apr 14, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
WriteBinary writes raw data as a binary frame.
WriteFrame writes a raw frame to w.
WriteJSON marshals v as JSON and writes it as a JSON frame.
WritePong writes a pong frame.
type Frame struct {
Type byte
Payload []byte
}
Frame represents a single protocol frame.
ReadFrame reads one frame from r.
Wire format: [1-byte type][4-byte big-endian length][payload].
Source Files
¶
Click to show internal directories.
Click to hide internal directories.