Node websocket server
Handles websocket like a champ, communicates with Rails & stuff.
Piece of cake:
yarn
or
npm install
Required environment variables:
DATABASE_URL
: mysql database connector URLHTTP_PORT
: port used by Rails to broadcast WS messages through this appWS_PORT
: public port on which WS messages should be sent out and listened to
Run:
npm run bstart-prod
Example:
DATABASE_URL=mysql://username:password@localhost:6033/database?sslca=config/as-ca.pem HTTP_PORT=10045 WS_PORT=10035 npm run bstart-pro