Skip to content

[Feature] eventNames support #4626

@vitalics

Description

@vitalics

Is your feature request related to a problem? Please describe.

As a universal wrapper for agnostic runtime, we use emitter.eventNames(). But for socket.io this function is not implemented

Describe the solution you'd like

expose eventNames() function which returns an array of built-in events. ['error', 'ping', 'reconnect', 'reconnect_attempt', 'reconnect_error', 'reconnect_failed']

Describe alternatives you've considered
None

Additional context
I know that related WebAPI this field is not exposed, but it's be very helpful for wrapper libraries

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions