I try to run server sails in production via command: sails lift --prod
then I have error:
VM448 production.min.js:1 WebSocket connection to 'ws://localhost:1337/socket.io/?__sails_io_sdk_version=1.2.1&__sails_io_sdk_platform=browser&__sails_io_sdk_language=javascript&EIO=3&transport=websocket' failed: Error during WebSocket handshake: Unexpected response code: 400
When I run server in development environment via: sails lift
that works well.
How can I fix this problem?