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

Method OnDisconnect

client.go:619–623  ·  view source on GitHub ↗

OnDisconnect adds a callback which is called when client disconnects from a remote kite.

(handler func())

Source from the content-addressed store, hash-verified

617// OnDisconnect adds a callback which is called when client disconnects
618// from a remote kite.
619func (c *Client) OnDisconnect(handler func()) {
620 c.m.Lock()
621 c.onDisconnectHandlers = append(c.onDisconnectHandlers, handler)
622 c.m.Unlock()
623}
624
625// OnTokenExpire adds a callback which is called when client receives
626// token-is-expired error from a remote kite.

Callers 2

RegisterToProxyMethod · 0.95
NewClientMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected