-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
34 lines (25 loc) · 757 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Example
=======
var simple_pusher = require('./simple_pusher');
var config = {
appId: '1234',
key: '0aafake61807key8fe70',
secret: '789fake2ac7esecretd9'
};
var channel = "pdq-orders";
var eventName = "purhcase";
var data = { price: 53.80, postalCode: '98072' };
simple_pusher.trigger(config, channel, eventName, data);
// You can also pass in a callback as the 5th argument to get the request
simple_pusher.trigger(config, channel, eventName, data, function(request) {
request.addListener('response', function(response) {
// Inspect the response, or something...
})
});
Contributors
============
Dave Hoover, @redsquirrel
Michael Hines, @michaelphines
License
=======
This code is free to use under the terms of the MIT license.