Examples of WebSocketProtocol


Examples of org.asynchttpclient.providers.netty.handler.WebSocketProtocol

    public void configureBootstraps(NettyRequestSender requestSender, AtomicBoolean closed) {

        HttpProtocol httpProtocol = new HttpProtocol(this, config, nettyConfig, requestSender);
        final Processor httpProcessor = new Processor(config, this, requestSender, httpProtocol);

        WebSocketProtocol wsProtocol = new WebSocketProtocol(this, config, nettyConfig, requestSender);
        wsProcessor = new Processor(config, this, requestSender, wsProtocol);

        plainBootstrap.handler(new ChannelInitializer<Channel>() {
            @Override
            protected void initChannel(Channel ch) throws Exception {
View Full Code Here

Examples of org.atmosphere.websocket.WebSocketProtocol

        framework.addInitParameter(ApplicationConfig.WEBSOCKET_SUPPORT, "true");
        framework.addInitParameter(ApplicationConfig.WEBSOCKET_PROTOCOL,
            endpoint.isUseStreaming() ? WebsocketStreamHandler.class.getName() : WebsocketHandler.class.getName());
        framework.init();
       
        WebSocketProtocol wsp = framework.getWebSocketProtocol();
        if (wsp instanceof WebsocketHandler) {
            ((WebsocketHandler)wsp).setConsumer(this);           
        } else {
            // this should not normally happen
            LOG.error("unexpected WebSocketHandler: {}", wsp);
View Full Code Here

Examples of org.atmosphere.websocket.WebSocketProtocol

        //TODO provide a way to switch between the non-stream handler and the stream handler
        framework.addInitParameter(ApplicationConfig.WEBSOCKET_PROTOCOL,
                                   AtmosphereWebSocketHandler.class.getName());
        framework.init();

        WebSocketProtocol wsp = framework.getWebSocketProtocol();
        if (wsp instanceof AtmosphereWebSocketHandler) {
            ((AtmosphereWebSocketHandler)wsp).setDestination(this);
        }
    }
View Full Code Here

Examples of org.atmosphere.websocket.WebSocketProtocol

        //TODO provide a way to switch between the non-stream handler and the stream handler
        framework.addInitParameter(ApplicationConfig.WEBSOCKET_PROTOCOL,
                                   AtmosphereWebSocketHandler.class.getName());
        framework.init();

        WebSocketProtocol wsp = framework.getWebSocketProtocol();
        if (wsp instanceof AtmosphereWebSocketHandler) {
            ((AtmosphereWebSocketHandler)wsp).setDestination(this);
        }

        // the executor for decoupling the service invocation from websocket's onMessage call which is
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.