Connections.ConnectionResponseCallback

public static interfaceConnections.ConnectionResponseCallback

This interface is deprecated.
Use ConnectionLifecycleCallbackinstead.

Callback for responses to connection requests.

Public Method Summary

abstract void
onConnectionResponse(String remoteEndpointId,Status status, byte[] handshakeData)
Called when a response is received for a connection request.

Public Methods

public abstract voidonConnectionResponse(StringremoteEndpointId, Status status, byte[] handshakeData)

Called when a response is received for a connection request.

Parameters
remoteEndpointId The identifier for the remote endpoint that sent the response.
status The status of the response. Valid values are ConnectionsStatusCodes.STATUS_OK, ConnectionsStatusCodes.STATUS_CONNECTION_REJECTED,and ConnectionsStatusCodes.STATUS_NOT_CONNECTED_TO_ENDPOINT.
handshakeData Bytes of a custom message provided in the connection response (on success). This array will not exceed Connections.MAX_RELIABLE_MESSAGE_LENbytes in length.