Websockets with AWS and Elastic Beanstalk

后端 未结 5 820
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-02 17:20

I\'m trying to get my websockets working with Amazon Web Service and Elastic Beanstalk (ELB).

I set up a proxy protocol according to: http://docs.aws.amazon.com/Elastic

5条回答
  •  無奈伤痛
    2021-02-02 18:04

    This is a very old post but having searched around for answers on this I have found two things you need to do to get websockets on a custom port working with AWS EB.

    1. Under the configuration of your EB environment. Go to Software and add an environment variable there. Make sure this is a case sensitive match with your code.

    2. Again under the configuration of your EB environment. Go to Load Balancer and add the custom port as a listener.

    Make sure you save the new listener under the config and on reload it should be routing websocket traffic on a custom port

提交回复
热议问题