code: func (c *Client) OnConnect(handler func()) {
  	c.m.Lock()
  	c.onConnectHandlers = append(c.onConnectHandlers, handler)
  	c.m.Unlock()
  }
docs: // OnConnect adds a callback which is called when client connects
  // to a remote kite.