Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Add missing API

Compare
Choose a tag to compare
@naderio naderio released this 14 Feb 14:34
· 38 commits to master since this release

Implements following API:

  • addEventListener( event: string, fn: Function ) : this; alias to on()
  • removeListener( event: string, fn?: Function ) : this; alias to off()
  • removeEventListener( event: string, fn?: Function ) : this; alias to off()
  • removeAllListeners() : this;
  • open() alias to connect()
  • close() alias to disconnect()
  • readonly disconnected: boolean; inverse of connected

Thanks to @lfabreges