OnDisconnect adds a callback which is called when client disconnects from a remote kite.
(handler func())
| 617 | // OnDisconnect adds a callback which is called when client disconnects |
| 618 | // from a remote kite. |
| 619 | func (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. |
no outgoing calls
no test coverage detected