A local version of the ev
EventEmitter2
Set a callback on a simple listener
The listener name (e.g onMessage, onAnyMessage, etc.)
The callback you need to run on the selected listener
The id of the callback
Discard a callback
The listener name (e.g onMessage, onAnyMessage, etc.)
The ID from listen
boolean - true if the callback was found and discarded, false if the callback is not found
The main way to create the socket based client.
URL of the socket server (i.e the EASY API instance address)
optional api key if set
SocketClient
[ALPHA - API will 100% change in the near future. Don't say I didn't warn you.]
An easy to use socket implementation that allows users to connect into remote instances of the EASY API.
How to use it:
Make sure you're running an instance of the EASY API and make sure to start it with the
--socket
flagUse this in your code: