Package com.wordnik.swaggersocket.protocol

Examples of com.wordnik.swaggersocket.protocol.Heartbeat


    protected final Object wrapMessage(AtmosphereResponse res, String message) {

        if (message != null && message.startsWith("heartbeat-")) {
            String identity = (String) getContextValue(res.request(), IDENTITY);
            return new Heartbeat(String.valueOf(System.nanoTime()), identity);
        } else {
            Request swaggerSocketRequest = lookupRequest(res.request());
            Response.Builder builder = new Response.Builder();

            builder.body(message)
View Full Code Here

TOP

Related Classes of com.wordnik.swaggersocket.protocol.Heartbeat

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.