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

Method callOnConnectHandlers

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

Source from the content-addressed store, hash-verified

331}
332
333func (k *Kite) callOnConnectHandlers(c *Client) {
334 k.handlersMu.RLock()
335 defer k.handlersMu.RUnlock()
336
337 for _, handler := range k.onConnectHandlers {
338 func() {
339 defer nopRecover()
340 handler(c)
341 }()
342 }
343}
344
345func (k *Kite) callOnFirstRequestHandlers(c *Client) {
346 k.handlersMu.RLock()

Callers 1

sockjsHandlerMethod · 0.95

Calls 1

nopRecoverFunction · 0.85

Tested by

no test coverage detected