MCPcopy
hub / github.com/olahol/melody / IsClosed

Method IsClosed

melody.go:294–296  ·  view source on GitHub ↗

IsClosed returns the status of the melody instance.

()

Source from the content-addressed store, hash-verified

292
293// IsClosed returns the status of the melody instance.
294func (m *Melody) IsClosed() bool {
295 return m.hub.closed()
296}
297
298// FormatCloseMessage formats closeCode and text as a WebSocket close message.
299func FormatCloseMessage(closeCode int, text string) []byte {

Callers 2

TestErrClosedFunction · 0.45
TestErrSessionClosedFunction · 0.45

Calls 1

closedMethod · 0.45

Tested by 2

TestErrClosedFunction · 0.36
TestErrSessionClosedFunction · 0.36