Skip to content

websocket capability

websocket adds real-time bidirectional communication to your Go service, built on top of http-api.

  • WebSocket upgrader
  • Connection management
  • Message handling patterns

Use websocket for features that need persistent bidirectional connections: chat, live dashboards, collaborative editing, or any scenario where the server must push updates without client polling.

Requires: http-api

Terminal window
verikt new my-service --language go --cap http-api,websocket
# or add to an existing service:
verikt add websocket

http-api

The Chi router foundation required by this capability.

sse

Server-Sent Events for server-to-client streaming.

auth-jwt

JWT authentication to secure WebSocket connections.