• Stars
    star
    102
  • Rank 335,584 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸ”Œ Streamlined LCU integration for your app.

lcu-connector

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

Download

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

Usage example

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();

Available methods

constructor (executablePath)

Creates a new lcu-connector.

Parameters

  1. [executablePath] {string} A path to where the LeagueClient executable resides. If not passed it will be automatically figured out from the OS process list.

start()

Starts listening for the LCU client.

stop()

Stops the connector.

Events

connect

Fired when the connection to the LCU client is established

disconnect

Fired when the connection to the LCU client is closed

More Repositories

1

rift-explorer

πŸ›  Explore the API of the League of Legends client
CSS
554
star
2

lol-wad-parser

A parser for .wad files from League of Legends.
JavaScript
47
star
3

lol-riot-api

A configurable League of Legends API
JavaScript
25
star
4

lol-esports-api

An API for the eSports side of League of Legends
JavaScript
24
star
5

lol-inibin-parser

A parser for .inibin files from League of Legends.
JavaScript
10
star
6

lol-bin-parser

A parser for .bin files from League of Legends.
JavaScript
8
star
7

lol-esports-api-module

A wrapper for League of Legends' eSports API
JavaScript
6
star
8

lol-skn-parser

A parser for .skn files from League of Legends.
JavaScript
6
star
9

lol-anm-parser

A parser for .anm files from League of Legends.
JavaScript
5
star
10

lol-tournament-code

League of Legends tournament code generator
JavaScript
5
star
11

lol-riot-api-module

A wrapper for League of Legends' official API
JavaScript
4
star
12

lol-skl-parser

A parser for .skl files from League of Legends.
JavaScript
3
star
13

adaptive-icon

Bring the new Android O adaptive icons directly into your browser.
JavaScript
3
star
14

binary-buffer-parser

A binary buffer parser with support for infinite sized files.
JavaScript
2
star
15

lol-hash-table

A table of unsigned 32 bit integers used by League of Legends.
JavaScript
2
star
16

lol-hash-util

A bunch of functions used to create unsigned 32 bit integer hashes for League of Legends.
JavaScript
2
star
17

lol-hash

A hash table for League of Legends
JavaScript
1
star
18

binary-file-parser

A binary file parser with internal buffer and caching system that lets you read virtually infinitely sized files.
JavaScript
1
star
19

smart-queue

A generic purpose "delayed" FIFO queue with ticket system, inspired by real life.
JavaScript
1
star
20

lol-ini-parser

A parser for .ini files from League of Legends.
JavaScript
1
star
21

lol-raf-parser

A parser for RAF files from League of Legends.
JavaScript
1
star
22

lol-json-parser

A parser for .json files from League of Legends.
JavaScript
1
star
23

electron-ipc

An element used to communicate through the ipc module for electron.
HTML
1
star