wsio

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package wsio provides reusable message storage for serial WebSocket readers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reader

type Reader struct {
	// contains filtered or unexported fields
}

Reader retains storage for ordinary relay packets, but not large signaling messages. The connection's SetReadLimit remains the message-size authority. Returned bytes are borrowed until the next Read; decode or copy before then. Oversized storage is detached as soon as it is returned, so it lives only as long as the caller's reference and never while waiting for the next message. A Reader belongs to one read loop and must not be used concurrently.

func (*Reader) Read

Jump to

Keyboard shortcuts

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