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

Method callOnDisconnectHandlers

client.go:655–665  ·  view source on GitHub ↗

callOnDisconnectHandlers runs the registered disconnect handlers.

()

Source from the content-addressed store, hash-verified

653
654// callOnDisconnectHandlers runs the registered disconnect handlers.
655func (c *Client) callOnDisconnectHandlers() {
656 c.m.RLock()
657 defer c.m.RUnlock()
658
659 for _, handler := range c.onDisconnectHandlers {
660 func() {
661 defer nopRecover()
662 handler()
663 }()
664 }
665}
666
667// callOnTokenExpireHandlers calls registered functions when an error
668// from remote kite is received that token used is expired.

Callers 2

sockjsHandlerMethod · 0.95
runMethod · 0.95

Calls 1

nopRecoverFunction · 0.85

Tested by

no test coverage detected