Created
April 3, 2018 17:57
-
-
Save Fusion86/7ee2f027e2b15ef78a92023ff0cee64a to your computer and use it in GitHub Desktop.
LeagueClient API (WAMP?)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const WebSocket = require('ws'); | |
let password = ''; | |
let port = 0; | |
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0"; | |
let ws = new WebSocket(`wss://riot:${password}@127.0.0.1:${port}/`, "wamp"); | |
ws.on('error', (err) => { | |
console.log(err); | |
}); | |
ws.on('message', (msg) => { | |
console.log(msg); | |
}); | |
ws.on('open', () => { | |
ws.send('[5, "OnJsonApiEvent"]'); | |
ws.send('[5, "OnCallback"]'); | |
}); |
Author
Fusion86
commented
Apr 3, 2018
•
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment