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

lcu-events

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lcu-events

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

  • 0.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by300%
Maintainers
1
Weekly downloads
 
Created
Source

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...
  })
})

Keywords

FAQs

Package last updated on 24 Oct 2021

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