0.1.2 • Published 3 years ago

lcu-events v0.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

lcu-events

A lightweight cross-platform TS project for receiving events from LCU.

Installation

npm install lcu-events

Usage

Subscribe to a specific event

import LCU from 'lcu-events';

const lcu = new LCU();

lcu.events.on('/lol-champ-select/v1/session', (data) => {
    // handle
})

Make a request to an endpoint

import LCU from "./lcu";

const lcu = new LCU();

lcu.wsEvents.on('connect', () => {
  lcu.fetch('/lol-login/v1/session')
  .then((resp) => resp.json())
  .then((data) => {
    // process data...
  })
})
0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago