Examples of UpgradeCallback


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

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, new AssembledConnectedStreamChannel(channel, channel.getSourceChannel(), channel.getSinkChannel()), buffers);
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.