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

Method OnDisconnect

kite.go:319–323  ·  view source on GitHub ↗

OnDisconnect registers a function to run when a connected Kite is disconnected.

(handler func(*Client))

Source from the content-addressed store, hash-verified

317
318// OnDisconnect registers a function to run when a connected Kite is disconnected.
319func (k *Kite) OnDisconnect(handler func(*Client)) {
320 k.handlersMu.Lock()
321 k.onDisconnectHandlers = append(k.onDisconnectHandlers, handler)
322 k.handlersMu.Unlock()
323}
324
325// OnRegister registers a callback which is called when a Kite registers
326// to a Kontrol.

Callers 8

NewWithConfigFunction · 0.95
SetupKontrolClientMethod · 0.45
installHandlersMethod · 0.45
TestMultipleFunction · 0.45
registerSrcMethod · 0.45
NewFunction · 0.45
HandleRegisterMethod · 0.45
NewFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestMultipleFunction · 0.36