onMessage(webSocketHandler, data);
}
else if (wsPayload instanceof WebSocketBinaryPayload)
{
WebSocketBinaryPayload binaryPayload = (WebSocketBinaryPayload) wsPayload;
BinaryMessage binaryData = binaryPayload.getMessage();
onMessage(webSocketHandler, binaryData);
}
else if (wsPayload instanceof WebSocketConnectedPayload)
{
WebSocketConnectedPayload connectedPayload = (WebSocketConnectedPayload) wsPayload;