meteorhacks / cluster

Clustering solution for Meteor with load balancing and service discovery
https://meteorhacks.com/cluster-a-different-kind-of-load-balancer-for-meteor.html
MIT License
631 stars 80 forks source link

Cloudflare error: Error during WebSocket handshake: Unexpected response code: 400 #66

Open adamgins opened 9 years ago

adamgins commented 9 years ago

HI , any ideas on this error pls?

I am using Cluster with AWS Opsworks + nginx reverse proxy + Cloudflare + SLL.

I turned on Cloudflare and I am seeing this is error in the browser console:

WebSocket connection to 'wss://<domain>/cluster-ddp/<long id>/web/651/ozzx4aqk/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400

I have not done anything special with Cloudflare and/or Meteor. I just turned on Cloudfare a specific sub-domain and saw this issue.

patrickml commented 9 years ago

Cloudflare doesnt support SSL in their basic plans so you need to turn off web sockets.

"env": {
  ...
    "DISABLE_WEBSOCKETS": "1"
  ...
  },