Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lcu-connector

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lcu-connector

Streamlined LCU integration for your app.

  • 1.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
37
decreased by-7.5%
Maintainers
1
Weekly downloads
 
Created
Source

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 = "C:\Riot Games\League of Legends\LeagueClient.exe"] {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

Keywords

FAQs

Package last updated on 25 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc