func (c *_Conn) onClientIDRequest() (interface{}, bool) {
	if !c.clientID.IsPrimary() {
		return types.ErrClientIdForbidden, false
	}

	clientid, err := uid.NewSecondaryClientID(c.clientID)
	if err != nil {
		return types.ErrBadRequest, false
	}
	cid := clientid.Encode(c.service.mac)
	return &types.ClientIdResponse{
		Status:   200,
		ClientId: cid,
	}, true

}
// onClientIdRequest is a handler that returns new client id for the request.
onClientIdRequest is a handler that returns new client id for the request.
// onClientIdRequest is a handler that returns new client id for the request .
func (c *_Conn) onClientIDRequest() (interface{}, bool) {
	if !c.clientID.IsPrimary() {
		return types.ErrClientIdForbidden, false
	}
	clientid, err := uid.NewSecondaryClientID(c.clientID)
	if err != nil {
		return types.ErrBadRequest, false
	}
	cid := clientid.Encode(c.service.mac)
	return &types.ClientIdResponse{
		Status:   200,
		ClientId: cid,
	}, true
}
func ( c * _Conn ) onClientIDRequest ( ) ( interface { } , bool ) { if ! c . clientID . IsPrimary ( ) { return types . ErrClientIdForbidden , false } clientid , err := uid . NewSecondaryClientID ( c . clientID ) if err != nil { return types . ErrBadRequest , false } cid := clientid . Encode ( c . service . mac ) return & types . ClientIdResponse { Status : 200 , ClientId : cid , } , true }
onClientIdRequest is a handler that returns new client id for the request.
onClientIdRequest is a handler that returns new client id for the request .