Skip to content

sse capability

sse adds Server-Sent Events to your Go service for one-way real-time streaming from server to connected clients.

  • SSE handler
  • Event formatting
  • Client connection management
  • Heartbeat support

Use sse for server-to-client streaming where you don’t need bidirectional communication: live feeds, notifications, progress updates. SSE is simpler than WebSockets for this pattern and works over plain HTTP.

Requires: http-api

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

http-api

The Chi router foundation required by this capability.

websocket

Bidirectional real-time communication.

auth-jwt

JWT authentication to secure SSE endpoints.