Package io.undertow.websockets.spi

Examples of io.undertow.websockets.spi.UpgradeCallback


     * @param exchange The {@link HttpServerExchange} for which the handshake and upgrade should occur.
     * @param callback The callback to call once the exchange is upgraded
     */
    public final void handshake(final WebSocketHttpExchange exchange, final WebSocketConnectionCallback callback) {

        exchange.upgradeChannel(new UpgradeCallback() {

            @Override
            public void handleUpgrade(final StreamConnection channel, final Pool<ByteBuffer> buffers) {
                //TODO: fix this up to use the new API and not assembled
                WebSocketChannel webSocket = createChannel(exchange, channel, buffers);
View Full Code Here


     * @param exchange The {@link HttpServerExchange} for which the handshake and upgrade should occur.
     * @param callback The callback to call once the exchange is upgraded
     */
    public final void handshake(final WebSocketHttpExchange exchange, final WebSocketConnectionCallback callback) {

        exchange.upgradeChannel(new UpgradeCallback() {

            @Override
            public void handleUpgrade(final StreamConnection channel, final Pool<ByteBuffer> buffers) {
                //TODO: fix this up to use the new API and not assembled
                WebSocketChannel webSocket = createChannel(exchange, new AssembledConnectedStreamChannel(channel, channel.getSourceChannel(), channel.getSinkChannel()), buffers);
View Full Code Here

TOP

Related Classes of io.undertow.websockets.spi.UpgradeCallback

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.