RESERVED_EVENTS top-level constant

List<String> const RESERVED_EVENTS

These strings must not be used as event names, as they have a special meaning.

Implementation

const List<String> RESERVED_EVENTS = [
  "connect", // used on the client side
  "connect_error", // used on the client side
  "disconnect", // used on both sides
  "disconnecting", // used on the server side
  "newListener", // used by the Node.js EventEmitter
  "removeListener", // used by the Node.js EventEmitter
];