简体   繁体   中英

Connection error in websocket over amazon ELB

My service resides in a server which has amazon ELB. The client portion communicates with the server by vertx eventbus. While trying to connect the server following logs pops out

WebSocket connection to 'wss://login.com:7070/Notify/287/mxyox3qd/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400

My Code at the client side:

  eventBus = new EventBus(url);
        eventBus.onopen = function() {
                  // ---------- Do Something ---------------------------------
            });

        }

Does ELB listener have something to do with this? can someone help ?

Elastic Load Balancers don't support web sockets. You need to upgrade to the new Application Load Balancer which does support web sockets.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM