Implementation of Channels to pass messages for a long polling implementation in nodejs.