Proxy HTTP requests over to a websocket.
- Runs on Google App Engine (GAE)
- Has to be in the flexible environment so that websockets can connect
- Download the Google Cloud SDK
- Create a project:
gcloud projects create [YOUR_PROJECT_NAME] --set-as-default
- Initialise app:
gcloud app create --project=[YOUR_PROJECT_NAME]
- Enable billing
- Install Git
- Install Node.js
git clone https://github.com/hajamie/nr-proxy.git
cd nr-proxy
npm install
npm run deploy
Take a look at http://YOUR_PROJECT_ID.appspot.com Create a node:
[{"id":"b3e9242.c5b60d8","type":"websocket in","z":"ba3995de.77a128","name":"nr-proxy","server":"","client":"1da91ba0.567e24","x":80,"y":40,"wires":[[]]},{"id":"1da91ba0.567e24","type":"websocket-client","z":"","path":"http://YOUR_PROJECT_ID.appspot.com","tls":"","wholemsg":"false"}]
HTTP is redirected to HTTPS when deployed to GAE.
See Google's setup instructions
- WebSocket Test Client Chrome extension
- Postman API Development Environment