Code Monkey home page Code Monkey logo

pusher's Introduction


IMPORTANT: This repository is not maintained anymore!

I decided to not maintain this library anymore and instead, work together with @pusher to create a better, actively maintained node.js library for the pusher service. Also, the npm package pusher now points to the new repository. We tried to make the new lib backwards compatible to this, so in best case, your existing apps won't even notice.

Please move on to https://github.com/pusher/pusher-node-server


Pusher

Pusher is a simple node.js publisher lib for pusher.com.

Usage

var Pusher = require('pusher');

var pusher = new Pusher({
  appId:  'YOUR_PUSHER_APP_ID',
  appKey: 'YOUR_PUSHER_APP_KEY',
  secret: 'YOUR_PUSHER_SECRET_KEY'
});

var channel = pusher.channel('sync');

var data = { name: "Joe", message_count: 23 };

channel.trigger('message', data, function(err, request, response) {
  // do something (this callback is optional)
});

Enjoy! :)

Credits

This lib is based on the work of Dave Hoover aka redsquirrel and his lib simple_pusher.

License

This code is free to use under the terms of the MIT license.

pusher's People

Contributors

blakmatrix avatar fabrik42 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.