MCPcopy Index your code
hub / github.com/koding/kite / callOnDisconnectHandlers

Method callOnDisconnectHandlers

kite.go:357–367  ·  view source on GitHub ↗
(c *Client)

Source from the content-addressed store, hash-verified

355}
356
357func (k *Kite) callOnDisconnectHandlers(c *Client) {
358 k.handlersMu.RLock()
359 defer k.handlersMu.RUnlock()
360
361 for _, handler := range k.onDisconnectHandlers {
362 func() {
363 defer nopRecover()
364 handler(c)
365 }()
366 }
367}
368
369func (k *Kite) callOnRegisterHandlers(r *protocol.RegisterResult) {
370 k.handlersMu.RLock()

Callers 1

sockjsHandlerMethod · 0.95

Calls 1

nopRecoverFunction · 0.85

Tested by

no test coverage detected