constants.js 360 B

123456789101112
  1. 'use strict';
  2. module.exports = {
  3. BINARY_TYPES: ['nodebuffer', 'arraybuffer', 'fragments'],
  4. EMPTY_BUFFER: Buffer.alloc(0),
  5. GUID: '258EAFA5-E914-47DA-95CA-C5AB0DC85B11',
  6. kForOnEventAttribute: Symbol('kIsForOnEventAttribute'),
  7. kListener: Symbol('kListener'),
  8. kStatusCode: Symbol('status-code'),
  9. kWebSocket: Symbol('websocket'),
  10. NOOP: () => {}
  11. };