Simple WebSocket relay server for node.js
This is made to be hosted on https://www.alwaysdata.com
Code may need to be adjusted to work with other hosts (especially the PORT to use), but there is a fallback to port 8080.
- Install node.js and npm
- git clone https://github.com/prossel/WebSocketRelay.git
- cd WebSocketRelay
- npm install
- node index.js
- Create a site in Alwaysdata admin
- Select Node.js
- Configure the node command to start the Node.js app as:
node $HOME/WebSocketRelay/index.js