if (webSocketFrame.isBinary()) {
Buffer buff = new Buffer(((WebSocketFrameInternal) webSocketFrame).getBinaryData());
ws.writeBinaryFrame(buff);
} else if (webSocketFrame.isText()) {
String request = webSocketFrame.textData();
final MessageType messageType = JsonUtil.parseFrame(request);
switch (messageType.getMessageType()) {
case HELLO:
ws.writeTextFrame(JsonUtil.toJson(new HelloResponseImpl(UUIDUtil.newUAID())));
break;
case REGISTER:
final RegisterMessageImpl registerMessage = JsonUtil.fromJson(request, RegisterMessageImpl.class);