Skip to content

Commit

Permalink
handle websockets
Browse files Browse the repository at this point in the history
  • Loading branch information
devsnek committed Nov 17, 2016
1 parent 5156624 commit b9b7356
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"homepage": "https://github.com/GusCaplan/discord-rpc#readme",
"dependencies": {
"superagent": "^2.3.0",
"uuid": "^2.0.3"
"uuid": "^2.0.3",
"ws": "^1.1.1"
}
}
1 change: 1 addition & 0 deletions src/RPCClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

const EventEmitter = require('events').EventEmitter;
const { RPCCommands, RPCEvents, RPCErrors } = require('./Constants');
if (typeof WebSocket === 'undefined') { const WebSocket = require('ws'); }
const superagent = require('superagent');
const uuid = require('uuid').v4;
const RESTClient = require('./RESTClient');
Expand Down

0 comments on commit b9b7356

Please sign in to comment.