{
super.onEvent(event);
if (event.getPayload() instanceof WebSocketPushPayload)
{
WebSocketPushPayload payload = (WebSocketPushPayload) event.getPayload();
if (payload.getMessage() instanceof BroadcastMessage)
{
BroadcastMessage broadcastMessage = (BroadcastMessage) payload.getMessage();
if (message.equals(broadcastMessage.getText()))
{
messageReceived.set(true);
}
}