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

Method OnConnect

kite.go:304–308  ·  view source on GitHub ↗

OnConnect registers a callbacks which is called when a Kite connects to the k Kite.

(handler func(*Client))

Source from the content-addressed store, hash-verified

302// OnConnect registers a callbacks which is called when a Kite connects
303// to the k Kite.
304func (k *Kite) OnConnect(handler func(*Client)) {
305 k.handlersMu.Lock()
306 k.onConnectHandlers = append(k.onConnectHandlers, handler)
307 k.handlersMu.Unlock()
308}
309
310// OnFirstRequest registers a function to run when we receive first request
311// from other Kite.

Callers 4

NewWithConfigFunction · 0.95
SetupKontrolClientMethod · 0.45
installHandlersMethod · 0.45
TestMultipleFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestMultipleFunction · 0.36