Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

Commit

Permalink
renaming node.pusher.js to pusher.js
Browse files Browse the repository at this point in the history
  • Loading branch information
leggetter committed Nov 20, 2012
1 parent 2e9f414 commit 6403eb2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -2,13 +2,13 @@

## Installation
```
$ npm install node-pusher
$ npm install pusher-node-server
```

## How to use

```javascript
var Pusher = require('node-pusher');
var Pusher = require('pusher-node-server');

var pusher = new Pusher({
appId: 'YOUR_PUSHER_APP_ID',
Expand Down
2 changes: 1 addition & 1 deletion index.js
@@ -1 +1 @@
module.exports = require('./lib/node-pusher');
module.exports = require('./lib/pusher');
File renamed without changes.
8 changes: 7 additions & 1 deletion tests/config.example.json
@@ -1 +1,7 @@
config.example.js
{
"pusher": {
"id": "YOUR_APP_ID",
"key": "YOUR_APP_KEY",
"secret": "YOUR_APP_SECRET"
}
}
3 changes: 1 addition & 2 deletions tests/trigger-test.js
@@ -1,6 +1,6 @@
var vows = require('vows'),
assert = require('assert'),
Pusher = require('../lib/node-pusher'),
Pusher = require('../lib/pusher'),
fs = require('fs');

var data = fs.readFileSync(__dirname + '/config.json');
Expand Down Expand Up @@ -35,7 +35,6 @@ vows.describe('Trigger').addBatch({
topic: function() {
var buf = new Buffer(1024*11);
var str = buf.toString();
console.log( str );

pusher.trigger( 'test_channel', 'my_event', str, null, this.callback );
},
Expand Down

0 comments on commit 6403eb2

Please sign in to comment.