ClosedMessage message = closedPayload.getMessage();
onClose(message);
}
else if (wsPayload instanceof WebSocketPushPayload)
{
WebSocketPushPayload pushPayload = (WebSocketPushPayload) wsPayload;
IWebSocketPushMessage message = pushPayload.getMessage();
onPush(webSocketHandler, message);
}
}
}