Streamlined LCU integration for your app.
This connector automatically retrieves the credentials for the API that starts when the new League of Legends client is launched.
To find out more about how the new client works check out the Riot Games engineering blog
For the LCU API documentation check out Rift explorer
lcu-connector is installable via:
- GitHub
git clone https://github.com/Pupix/lcu-connector.git
- yarn:
yarn add lcu-connector
- npm:
npm install lcu-connector
const LCUConnector = require('lcu-connector');
const connector = new LCUConnector();
connector.on('connect', (data) => {
console.log(data);
// {
// address: '127.0.0.1'
// port: 18633,
// username: 'riot',
// password: H9y4kOYVkmjWu_5mVIg1qQ,
// protocol: 'https'
// }
});
// Start listening for the LCU client
connector.start();
Creates a new lcu-connector.
Parameters
- [executablePath] {string} A path to where the LeagueClient executable resides. If not passed it will be automatically figured out from the OS process list.
Starts listening for the LCU client.
Stops the connector.
Fired when the connection to the LCU client is established
Fired when the connection to the LCU client is closed