[Feature] eventNames support
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
Hi! Thanks for raising this. I suppose this is for the client package.
expose eventNames() function which returns an array of built-in events
Should we include only built-in events, or all events (in order to match the behavior of the Node.js emitter)?
Source: https://github.com/socketio/emitter
@darrachequesne Yes for the client package. I suppose that it will be very useful to support all events to simulate node.js emitter behavior.