wsserver

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package wsserver streams live events over a token-gated WebSocket. Loopback-only by construction (spec §9): the bind address is hardcoded to 127.0.0.1 and not configurable. Bus semantics apply — a slow consumer misses events; durability lives in the store.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(ctx context.Context, port int, token string, b *bus.Bus) (string, error)

Start listens on 127.0.0.1:port (0 = ephemeral) and serves /events. Returns the actual listen address; shuts down when ctx is cancelled.

Types

This section is empty.

Jump to

Keyboard shortcuts

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