Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Greenhouse web site notifications with NodeJS Socket.IO

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 node_modules
Octocat-spinner-32 README
Octocat-spinner-32 app.js
Octocat-spinner-32 notifications.js
README
This Node application publishes notifications to the main Greenhouse web application.  It receives messages from a Redis pub/sub topic and then pushes them out to subscribed browser clients via the Socket.IO Node module.

The app can be started locally (assuming you have NodeJS set up correctly) by executing 'node app.js' from the root directory of the project.

When running in local mode, it is expected that there is also already a local Redis instance running (on localhost using the default Redis port).

When running on Cloud Foundry, it is expected that the app has a Redis service bound to it.

The app will auto-detect its environment on startup, configuring the correct Redis connection based on what is detected.

Socket.IO is currently configured to only use the Comet long-polling technique, as Cloud Foundry does not currently allow WebSocket traffic.
Something went wrong with that request. Please try again.