Versions in this module Expand all Collapse all v0 v0.1.1 Nov 23, 2026 v0.1.0 Nov 14, 2026 Changes in this version + const MaxFrame + const MaxRequest + var ErrClosed = errors.New("WebSocket connection closed; reconnect to refresh state") + func CommandError(err error) error + type Client struct + func (c *Client) Close() + func (c *Client) Connect(ctx context.Context, key, endpoint string, handshake Handshake, route Route, ...) (*Session, bool, error) + type Handshake func(context.Context, *websocket.Conn) error + type Rejected struct + Operation string + func (e *Rejected) Error() string + type Route func(json.RawMessage) (string, error) + type Session struct + func (s *Session) Alive() bool + func (s *Session) Close() + func (s *Session) Request(ctx context.Context, id string, value any) (json.RawMessage, error)