summaryrefslogtreecommitdiff
path: root/tictactoe/server/node_modules/ws/browser.js
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-05-07 16:12:58 +0200
committerMinteck <contact@minteck.org>2022-05-07 16:12:58 +0200
commit1f8e9aab02a849f64aa6069a04cbabaf5993c65a (patch)
tree0581705f7baba7921e1755c68d4325660d467503 /tictactoe/server/node_modules/ws/browser.js
downloadarcade-1f8e9aab02a849f64aa6069a04cbabaf5993c65a.tar.gz
arcade-1f8e9aab02a849f64aa6069a04cbabaf5993c65a.tar.bz2
arcade-1f8e9aab02a849f64aa6069a04cbabaf5993c65a.zip
Initial commit
Diffstat (limited to 'tictactoe/server/node_modules/ws/browser.js')
-rw-r--r--tictactoe/server/node_modules/ws/browser.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/tictactoe/server/node_modules/ws/browser.js b/tictactoe/server/node_modules/ws/browser.js
new file mode 100644
index 0000000..ca4f628
--- /dev/null
+++ b/tictactoe/server/node_modules/ws/browser.js
@@ -0,0 +1,8 @@
+'use strict';
+
+module.exports = function () {
+ throw new Error(
+ 'ws does not work in the browser. Browser clients must use the native ' +
+ 'WebSocket object'
+ );
+};