slumberdb/slumberdb-service-client/src/main/java/org/boon/slumberdb/service/client/ServerProxy.java
private void handleMessageFromServer(String message) {


        if (verbose) {
            puts("WEBSOCKET RESPONSE", ProtocolConstants.prettyPrintMessage(message));
            puts("WEBSOCKET RESPONSE");
            puts(ProtocolConstants.prettyPrintMessageWithLinesTabs(message));
        }

        try {
            if (message.startsWith(Action.GET.response().startsWith()) ||
                    message.startsWith(Action.SET_BROADCAST.response().startsWith())) {

                final SingleResult singleResult = SingleResult.fromTextMessage(message);
                queue.put(singleResult);


            } else if (message.startsWith(Action.BATCH_READ.response().startsWith())) {
                queue.put(BatchResult.fromTextMessage(message));

            } else {
                if (verbose) {
                    puts("Unknown action", message);
                }
            }
        } catch (Exception ex) {
            logger.error(ex, "ServerProxy::handleMessageFromServer\n", message);
        }

    }
private void handleMessageFromServer(String message) {


        if (verbose) {
            puts("WEBSOCKET RESPONSE", ProtocolConstants.prettyPrintMessage(message));
            puts("WEBSOCKET RESPONSE");
            puts(ProtocolConstants.prettyPrintMessageWithLinesTabs(message));
        }

        try {
            if (message.startsWith(Action.GET.response().startsWith()) ||
                    message.startsWith(Action.SET_BROADCAST.response().startsWith())) {

                final SingleResult singleResult = SingleResult.fromTextMessage(message);
                queue.put(singleResult);


            } else if (message.startsWith(Action.BATCH_READ.response().startsWith())) {
                queue.put(BatchResult.fromTextMessage(message));

            } else {
                if (verbose) {
                    puts("Unknown action", message);
                }
            }
        } catch (Exception ex) {
            logger.error(ex, "ServerProxy::handleMessageFromServer\n", message);
        }

    }
RESPONSES FROM SERVER.

@param message