MCPcopy Index your code
hub / github.com/gotify/server / newClient

Function newClient

api/stream/client.go:32–40  ·  view source on GitHub ↗
(conn *websocket.Conn, userID uint, token string, onClose func(*client))

Source from the content-addressed store, hash-verified

30}
31
32func newClient(conn *websocket.Conn, userID uint, token string, onClose func(*client)) *client {
33 return &client{
34 conn: conn,
35 write: make(chan *model.MessageExternal, 1),
36 userID: userID,
37 token: token,
38 onClose: onClose,
39 }
40}
41
42// Close closes the connection.
43func (c *client) Close() {

Callers 1

HandleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…