Entre-LOL
It's a module to interact with LCU WebSocketServer
Installation
npm i entre-lol
Usage
const LCU = let ws;async { ws = await LCU}; LCUREADY
Elements
function
createWebSocket(): Promise<LeagueWebSocket>
class
LeagueWebSocket({ auth: string, ip?: string, port: number })
-
Properties
- private controller:
WebSocket
- public authHeader:
string
- public ip:
string
- public port:
number
- public readonly subscriptions:
Set<WSEvents>
- private controller:
-
Methods
-
subscribe(event): boolean
- Parameters:
- event:
WSEvents
- event:
- Parameters:
-
unsubscribe(event): boolean
- Parameters:
- event:
WSEvents
- event:
- Parameters:
-
getEvents(): Promise<string[ ]> # Returns the full list of events
-