clicker

Simple channel implementation in NodeJS


Keywords
channels, channel, publish, subscribe, observer
License
MIT
Install
npm install clicker@0.0.2

Documentation

clicker

Simple Channel Implementation in NodeJS

Install

npm install clicker --save

Example

CoffeeScript

clicker = require 'clicker'

pub = clicker.publisher 'topic one'
sub = clicker.subscriber 'topic one', 1, (data, callback) ->
  console.log data
  callback()

pub.publish 'Jah!', () ->
  console.log 'Rasta!'