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

match socket.io-client API #16

Description

@naderio

refer https://github.com/socketio/socket.io-client/blob/master/docs/API.md and https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/socket.io-client/index.d.ts for reference

to do:

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions