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

Method Close

api/stream/client.go:43–48  ·  view source on GitHub ↗

Close closes the connection.

()

Source from the content-addressed store, hash-verified

41
42// Close closes the connection.
43func (c *client) Close() {
44 c.once.Do(func() {
45 c.conn.Close()
46 close(c.write)
47 })
48}
49
50// NotifyClose closes the connection and notifies that the connection was closed.
51func (c *client) NotifyClose() {

Callers 1

NotifyCloseMethod · 0.45

Calls 1

DoMethod · 0.80

Tested by

no test coverage detected