code: func (o *ClientOptions) SetOnConnectHandler(onConn OnConnectHandler) *ClientOptions {
  	o.OnConnect = onConn
  	return o
  }
docs: // SetOnConnectHandler sets the function to be called when the client is connected. Both
  // at initial connection time and upon automatic reconnect.