summaryrefslogtreecommitdiffstats
path: root/testing/xpcshell/node-ws/lib/constants.js
blob: d691b30a17fc653c63cb365e24ff564ce7d5cd1a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';

module.exports = {
  BINARY_TYPES: ['nodebuffer', 'arraybuffer', 'fragments'],
  EMPTY_BUFFER: Buffer.alloc(0),
  GUID: '258EAFA5-E914-47DA-95CA-C5AB0DC85B11',
  kForOnEventAttribute: Symbol('kIsForOnEventAttribute'),
  kListener: Symbol('kListener'),
  kStatusCode: Symbol('status-code'),
  kWebSocket: Symbol('websocket'),
  NOOP: () => {}
};