{"_id":"node-pusher","_rev":"5-eb2d775b54dfe75a87999eeff55c0a0a","name":"node-pusher","description":"Node library for Pusher API","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"node-pusher","description":"Node library for Pusher API","version":"0.0.1","author":{"name":"Jaewoong Kim","email":"jwoongkim@gmail.com"},"dependencies":{},"devDependencies":{},"keywords":["pusher","websockets","realtime"],"repository":{"type":"git","url":"git://github.com/crossbreeze/node-pusher.git"},"main":"index","engines":{"node":">= 0.4.3"},"_npmJsonOpts":{"file":"/Users/jwoongkim/.npm/node-pusher/0.0.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"node-pusher@0.0.1","_engineSupported":true,"_npmVersion":"1.0.24","_nodeVersion":"v0.4.10","_defaultsLoaded":true,"dist":{"shasum":"17ec119b15335dc45f2f47d84e29caa3a1af545a","tarball":"https://registry.npmjs.org/node-pusher/-/node-pusher-0.0.1.tgz","integrity":"sha512-ypHEV7Y55nPsUIfXKhA+OZI6PBRlJBEhfWrBuJeIGOxFdztWBdymeJMFUoYGg1uVdP9F6yNU3EZjNIdve2q4DQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3aeC/O0iSagGS+bzqFWqMb7VBdI0pwMjmorRYefenKwIgIxglZcgwzUFJCCEJOmYQK/Vm3Vi31fBHqom8fqZyK7o="}]},"scripts":{},"maintainers":[{"name":"crossbreeze","email":"jwoongkim@gmail.com"}]},"0.0.2":{"name":"node-pusher","description":"Node library for Pusher API","version":"0.0.2","author":{"name":"Jaewoong Kim","email":"jwoongkim@gmail.com"},"dependencies":{},"devDependencies":{},"keywords":["pusher","websockets","realtime"],"repository":{"type":"git","url":"git://github.com/crossbreeze/node-pusher.git"},"main":"index","engines":{"node":">= 0.4.3"},"_npmUser":{"name":"crossbreeze","email":"jwoongkim@gmail.com"},"_id":"node-pusher@0.0.2","optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.9","_nodeVersion":"v0.6.13","_defaultsLoaded":true,"dist":{"shasum":"3b6081bf4e46785be8c09a652c1d70278e0f7d84","tarball":"https://registry.npmjs.org/node-pusher/-/node-pusher-0.0.2.tgz","integrity":"sha512-aoWijhRnllpv9LP/p4EJ9cFC83JOi2V+k5KossCPMY1+wXQk0rOx0UIvEAlXniCU1BnRQ58eNtRiP980ujeRvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCC9qyV3vVlhvf3LFj+0X1paJbEXJKsfi4SOvHdw6yJTQIhAJpgNxzM/1ZS6s4/zv46uDLudz2Gl0mgD+3Qoays+yeX"}]},"maintainers":[{"name":"crossbreeze","email":"jwoongkim@gmail.com"}]}},"maintainers":[{"name":"crossbreeze","email":"jwoongkim@gmail.com"}],"time":{"modified":"2022-06-21T18:26:52.184Z","created":"2011-08-13T05:47:02.982Z","0.0.1":"2011-08-13T05:47:05.136Z","0.0.2":"2012-03-23T03:00:23.178Z"},"author":{"name":"Jaewoong Kim","email":"jwoongkim@gmail.com"},"repository":{"type":"git","url":"git://github.com/crossbreeze/node-pusher.git"},"readme":"# A node library for Pusher API\n\n## Installation\n```\n$ npm install node-pusher\n```\n\n## How to use\n\n```javascript\nvar Pusher = require('node-pusher');\n\nvar pusher = new Pusher({\n  appId: 'YOUR_PUSHER_APP_ID',\n  key: 'YOUR_PUSHER_APP_KEY',\n  secret: 'YOUR_PUSHER_SECRET_KEY'\n});\n\nvar channel = 'lobby';\nvar event = 'message';\nvar data = {\n  from: 'Jaewoong',\n  content: 'Hello, World'\n};\n\n// (optional) socket_id is used to prevent getting message for myself\n// http://pusher.com/docs/publisher_api_guide/publisher_excluding_recipients\nvar socket_id = '1302.1081607';\n\npusher.trigger(channel, event, data, socket_id, function(err, req, res) {\n  // do something (this callback is optional)\n});\n\n// auth function returns the object with the auth field which can be returned from our sever\n// to authorize the socket to subscribe to a private or presence channel\n// http://pusher.com/docs/auth_signatures\npusher.auth(socket_id, channel, channelData);\n```\n\n## Credits\n\nThis library is based on the work of Christian Bäuerlein and his library pusher\n\n## License\n\nThis code is free to use under the terms of the MIT license.\n","readmeFilename":""}