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

Method callOnConnectHandlers

client.go:642–652  ·  view source on GitHub ↗

callOnConnectHandlers runs the registered connect handlers.

()

Source from the content-addressed store, hash-verified

640
641// callOnConnectHandlers runs the registered connect handlers.
642func (c *Client) callOnConnectHandlers() {
643 c.m.RLock()
644 defer c.m.RUnlock()
645
646 for _, handler := range c.onConnectHandlers {
647 func() {
648 defer nopRecover()
649 handler()
650 }()
651 }
652}
653
654// callOnDisconnectHandlers runs the registered disconnect handlers.
655func (c *Client) callOnDisconnectHandlers() {

Callers 2

sockjsHandlerMethod · 0.95
dialMethod · 0.95

Calls 1

nopRecoverFunction · 0.85

Tested by

no test coverage detected