ws

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2026 License: MIT Imports: 7 Imported by: 0

README

realtime-ws

WebSocket transport for togo realtime (implements togo.Broker). Install it to upgrade the default SSE broker to WebSockets.

togo install togo-framework/realtime-ws

Clients connect to /events; messages are JSON { "event": "...", "data": "..." }.

Documentation

Overview

Package ws is a WebSocket transport for togo realtime. It implements togo.Broker and registers with higher priority than the default SSE broker, so installing it upgrades the app to WebSockets. Install: `togo install togo-framework/realtime-ws`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBroker

func NewBroker() togo.Broker

NewBroker creates a WebSocket broker.

Types

This section is empty.

Jump to

Keyboard shortcuts

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