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