Basic example of running websockets on the Cloud Foundry environment with an NodeJS app. Since the SSL-Termination caused problems, the example app provides a working approach on how to use websockets on Cloud Foundry.
- Install the dependencies:
npm install
- Push the app to the cloudfoundry environment. Ensure that you are connected to an API Endpoint.
cf push
- Run the client on the local machine. Make sure you change the url to your app in the code!
node client.js