ParseLiveQuery depends on Websockets. More generically this question could be about getting web sockets to work behind an AWS ELB.
I'm using the new Parse Server configured in AWS using Elastic Beanstalk (EB). EB configures an EC2 instance behind a Load Balancer and we need auto-scaling to work. The Parse Server is working very well.
I'm configuring our server to use the new Parse Live Query implementation which uses WebSockets.
- Locally I have everything working.
- My iOS Client app will connect and work if I connect the LiveQueryClient directly to the Public DNS of one of our ParseServer instances.
- However, I'm not awesome enough to understand why our LiveQuery code doesn't work through the Load Balancer DNS entry.
I'm getting a 404 error if I point the client to the Load Balancer:
Error Domain=SRWebSocketErrorDomain Code=2132 "received bad response code from server 404"