aboutsummaryrefslogtreecommitdiffhomepage
path: root/node_modules/ws/lib/Constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/ws/lib/Constants.js')
-rw-r--r--node_modules/ws/lib/Constants.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/node_modules/ws/lib/Constants.js b/node_modules/ws/lib/Constants.js
new file mode 100644
index 0000000..3904414
--- /dev/null
+++ b/node_modules/ws/lib/Constants.js
@@ -0,0 +1,10 @@
+'use strict';
+
+const safeBuffer = require('safe-buffer');
+
+const Buffer = safeBuffer.Buffer;
+
+exports.BINARY_TYPES = ['nodebuffer', 'arraybuffer', 'fragments'];
+exports.GUID = '258EAFA5-E914-47DA-95CA-C5AB0DC85B11';
+exports.EMPTY_BUFFER = Buffer.alloc(0);
+exports.NOOP = () => {};