public interface OnConnectCallback extends SynchronousCallback
OnAuthenticationCallbacks.
That means, when this callback gets executed, Authentication already took place
This callback is not designed to be used for performing authentication.
Use OnAuthenticationCallback for this
purpose| Modifier and Type | Method and Description |
|---|---|
void |
onConnect(CONNECT connect,
ClientData clientData)
This method gets called when a
CONNECT message arrives. |
priorityvoid onConnect(CONNECT connect, ClientData clientData) throws RefusedConnectionException
CONNECT message arrives.connect - the CONNECT object which arrivedclientData - information about the authenticated/anonymous clientRefusedConnectionException - if the client should be disconnected with a
CONNACK with a specific
ReturnCodeCopyright © 2013-2018 dc-square GmbH. All Rights Reserved.