altmp / altv-client-js

Official clientside JavaScript runtime for alt:V
6 stars 7 forks source link

Add get event listeners to webview and websocketclient #54

Closed LeonMrBonnie closed 3 years ago

LeonMrBonnie commented 3 years ago

Adds a method to the WebView and WebSocketClient class to get the current event listeners for a specified event. Typings:

export function getEventListeners(eventName: string): Function[];

See https://github.com/altmp/v8-helpers/issues/26