MCPcopy
hub / github.com/gotify/server / API

Struct API

api/stream/stream.go:19–25  ·  view source on GitHub ↗

The API provides a handler for a WebSocket stream API.

Source from the content-addressed store, hash-verified

17
18// The API provides a handler for a WebSocket stream API.
19type API struct {
20 clients map[uint][]*client
21 lock sync.RWMutex
22 pingPeriod time.Duration
23 pongTimeout time.Duration
24 upgrader *websocket.Upgrader
25}
26
27// New creates a new instance of API.
28// pingPeriod: is the interval, in which is server sends the a ping to the client.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected