MCPcopy
hub / github.com/cloudflare/cloudflared / Close

Method Close

websocket/connection.go:172–176  ·  view source on GitHub ↗

Close waits for the current write to finish. Further writes will return error

()

Source from the content-addressed store, hash-verified

170
171// Close waits for the current write to finish. Further writes will return error
172func (c *Conn) Close() {
173 c.writeLock.Lock()
174 defer c.writeLock.Unlock()
175 c.done = true
176}

Callers 5

wsEchoEndpointFunction · 0.95
wsFlakyEndpointFunction · 0.95
StreamMethod · 0.95
StreamMethod · 0.95

Calls

no outgoing calls

Tested by 3

wsEchoEndpointFunction · 0.76
wsFlakyEndpointFunction · 0.76