2024-05-01 02:44:20 +00:00
|
|
|
'use strict';
|
|
|
|
|
2024-07-20 19:38:12 +00:00
|
|
|
const BINARY_TYPES = ['nodebuffer', 'arraybuffer', 'fragments'];
|
|
|
|
const hasBlob = typeof Blob !== 'undefined';
|
|
|
|
|
|
|
|
if (hasBlob) BINARY_TYPES.push('blob');
|
|
|
|
|
2024-05-01 02:44:20 +00:00
|
|
|
module.exports = {
|
2024-07-20 19:38:12 +00:00
|
|
|
BINARY_TYPES,
|
2024-05-01 02:44:20 +00:00
|
|
|
EMPTY_BUFFER: Buffer.alloc(0),
|
|
|
|
GUID: '258EAFA5-E914-47DA-95CA-C5AB0DC85B11',
|
2024-07-20 19:38:12 +00:00
|
|
|
hasBlob,
|
2024-05-01 02:44:20 +00:00
|
|
|
kForOnEventAttribute: Symbol('kIsForOnEventAttribute'),
|
|
|
|
kListener: Symbol('kListener'),
|
|
|
|
kStatusCode: Symbol('status-code'),
|
|
|
|
kWebSocket: Symbol('websocket'),
|
|
|
|
NOOP: () => {}
|
|
|
|
};
|