Meteor WebSocket handshake error 400 with nginx

后端 未结 4 2000
闹比i
闹比i 2020-12-02 16:06

I managed to deploy meteor on my infrastructure (Webfactions). The application seems to work fine but I get the following error in the browser console when my application st

4条回答
  •  独厮守ぢ
    2020-12-02 16:52

    if you are receiving this error client side in the browser console, you can safely ignore it - it means that your hosting does not support websockets and meteor will fallback to using long polling instead

    meteor apps deployed to heroku or any other platform without websockets will get the same error


    update: as of meteor v0.6.4 you can now set the environment variable DISABLE_WEBSOCKETS to prevent this attempt from occurring if you know it will fail

    https://github.com/meteor/meteor/blob/devel/History.md

    If you set the DISABLE_WEBSOCKETS environment variable, browsers will not attempt to connect to your app using Websockets. Use this if you know your server environment does not properly proxy Websockets to reduce connection startup time.
    

提交回复
热议问题