Connection error in websocket via amazon ELB

My service is on a server with AMAZON ELB. The client part communicates with the server using vertx eventbus. When you try to connect the server, the following logs go out

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

My client side code:

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

Does the ELB listener have something in common? can someone help?

+7
javascript amazon-web-services amazon-elb websocket
source share
1 answer

Flexible balancing devices do not support network sockets. You need to upgrade to the new Application Load Balancer , which supports web sockets.

+2
source share

All Articles