Documentation
¶
Overview ¶
Package realtime provides Server-Sent Events and WebSocket handlers with bounded connection and message behavior. Applications own authorization, fan-out infrastructure, presence, replay, and connection accounting.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn wraps a WebSocket connection over a raw net.Conn socket.
func Upgrade ¶
Upgrade performs a WebSocket handshake (101 Switching Protocols) and returns a WebSocket Conn.
func (*Conn) ReadMessage ¶
ReadMessage reads a WebSocket text message frame.
func (*Conn) WriteMessage ¶
WriteMessage sends a WebSocket text message frame.
Click to show internal directories.
Click to hide internal directories.