简体   繁体   English

亚马逊ELB上websocket的连接错误

[英]Connection error in websocket over amazon ELB

My service resides in a server which has amazon ELB. 我的服务驻留在拥有亚马逊ELB的服务器上。 The client portion communicates with the server by vertx eventbus. 客户端部分通过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? ELB听众是否与此有关? can someone help ? 有人可以帮忙吗?

Elastic Load Balancers don't support web sockets. Elastic Load Balancers不支持Web套接字。 You need to upgrade to the new Application Load Balancer which does support web sockets. 您需要升级到支持Web套接字的新Application Load Balancer

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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