BinaryMessage binaryData = binaryPayload.getMessage();
onMessage(webSocketHandler, binaryData);
}
else if (payload instanceof WebSocketConnectedPayload)
{
WebSocketConnectedPayload connectedPayload = (WebSocketConnectedPayload) payload;
ConnectedMessage message = connectedPayload.getMessage();
onConnect(message);
}
else if (payload instanceof WebSocketClosedPayload)
{
WebSocketClosedPayload connectedPayload = (WebSocketClosedPayload) payload;
ClosedMessage message = connectedPayload.getMessage();
onClose(message);
}
else if (payload instanceof WebSocketPushPayload)
{
WebSocketPushPayload pushPayload = (WebSocketPushPayload) payload;