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

Method OnConnect

client.go:611–615  ·  view source on GitHub ↗

OnConnect adds a callback which is called when client connects to a remote kite.

(handler func())

Source from the content-addressed store, hash-verified

609// OnConnect adds a callback which is called when client connects
610// to a remote kite.
611func (c *Client) OnConnect(handler func()) {
612 c.m.Lock()
613 c.onConnectHandlers = append(c.onConnectHandlers, handler)
614 c.m.Unlock()
615}
616
617// OnDisconnect adds a callback which is called when client disconnects
618// from a remote kite.

Callers 1

NewClientMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected