summaryrefslogtreecommitdiff
path: root/ext/websocket/autobahn/autobahn_server.js
diff options
context:
space:
mode:
authorBartek Iwańczuk <biwanczuk@gmail.com>2023-04-26 17:48:23 +0200
committerGitHub <noreply@github.com>2023-04-26 15:48:23 +0000
commit17d1c7e444542f43229a047853605ac22081abdf (patch)
treeb76a085f46b0751f5808f311d532c99aa11dedad /ext/websocket/autobahn/autobahn_server.js
parent38681dfa88defd1f9f3abd74cbb6c83cff597d84 (diff)
Revert "chore(ext/websocket): Add autobahn|testsuite fuzzingclient (#… (#18856)
…18846)" This reverts commit 036778c2e8e159ef1e586de4102f823367b7c554. Keeps failing on `main` branch.
Diffstat (limited to 'ext/websocket/autobahn/autobahn_server.js')
-rw-r--r--ext/websocket/autobahn/autobahn_server.js20
1 files changed, 0 insertions, 20 deletions
diff --git a/ext/websocket/autobahn/autobahn_server.js b/ext/websocket/autobahn/autobahn_server.js
deleted file mode 100644
index c678dfc1a..000000000
--- a/ext/websocket/autobahn/autobahn_server.js
+++ /dev/null
@@ -1,20 +0,0 @@
-// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-import { parse } from "../../../test_util/std/flags/mod.ts";
-
-const { port } = parse(Deno.args, {
- number: ["port"],
- default: {
- port: 6969,
- },
-});
-
-const { serve } = Deno;
-
-// A message-based WebSocket echo server.
-serve((request) => {
- const { socket, response } = Deno.upgradeWebSocket(request);
- socket.onmessage = (event) => {
- socket.send(event.data);
- };
- return response;
-}, { port });