Versions in this module Expand all Collapse all v0 v0.1.0 Jan 17, 2026 Changes in this version + const OpBinary + const OpClose + const OpContinuation + const OpPing + const OpPong + const OpText + var ErrClosed = errors.New("websocket closed") + type Conn struct + func Upgrade(ctx *bebo.Context, options WebSocketOptions) (*Conn, error) + func (c *Conn) Close() error + func (c *Conn) ReadMessage() (int, []byte, error) + func (c *Conn) ReadText() (string, error) + func (c *Conn) WriteMessage(opcode int, payload []byte) error + func (c *Conn) WriteText(message string) error + type SSE struct + func StartSSE(ctx *bebo.Context, options SSEOptions) (*SSE, error) + func (s *SSE) Close() + func (s *SSE) Send(msg SSEMessage) error + type SSEMessage struct + Data string + Event string + ID string + Retry time.Duration + type SSEOptions struct + Headers map[string]string + type WebSocketOptions struct + MaxMessageSize int64 + ReadTimeout time.Duration + WriteTimeout time.Duration