MCPcopy
hub / github.com/coder/websocket / isClosed

Method isClosed

ws_js.go:426–433  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

424}
425
426func (c *Conn) isClosed() bool {
427 select {
428 case <-c.closed:
429 return true
430 default:
431 return false
432 }
433}
434
435// AcceptOptions represents Accept's options.
436type AcceptOptions struct {

Callers 2

writeMethod · 0.95
exportedCloseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected