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

Method NotifyClose

api/stream/client.go:51–57  ·  view source on GitHub ↗

NotifyClose closes the connection and notifies that the connection was closed.

()

Source from the content-addressed store, hash-verified

49
50// NotifyClose closes the connection and notifies that the connection was closed.
51func (c *client) NotifyClose() {
52 c.once.Do(func() {
53 c.conn.Close()
54 close(c.write)
55 c.onClose(c)
56 })
57}
58
59// startWriteHandler starts listening on the client connection. As we do not need anything from the client,
60// we ignore incoming messages. Leaves the loop on errors.

Callers 2

startReadingMethod · 0.95
startWriteHandlerMethod · 0.95

Calls 2

DoMethod · 0.80
CloseMethod · 0.45

Tested by

no test coverage detected