I have deployed NodeJs Parse server with Parse LiveQuery on AWS elasticbeanstalk but it seems like LiveQuery is not working. When i try to subscribe from my iOS client app it gives me error.

Error: Error Domain=SRWebSocketErrorDomain Code=2132 "received bad response code from server 404"

Note: When I run locally on my mac it works fine. What could be the issue with AWS ?

up vote 2 down vote accepted
+100

Similar issue as here:

How to run a Parse Live Query Server (Web Sockets) behind an AWS Load Balancer?

The problem seemed to be that classic load balancers don't support websockets.

AWS recently launched a new service, Application Load Balancers, which support websockets:

https://aws.amazon.com/blogs/aws/new-aws-application-load-balancer/

  • Application load balancers Perfect thanks for this – Asadullah Ali Sep 11 '16 at 19:02

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.