Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ext/websocket): readd autobahn|testsuite fuzzingclient #18903

Merged
merged 4 commits into from
May 1, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix serve signature
  • Loading branch information
littledivy committed Apr 29, 2023
commit a8dde5be25304018797389be625eb478806d3250
4 changes: 2 additions & 2 deletions ext/websocket/autobahn/autobahn_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const { port } = parse(Deno.args, {
const { serve } = Deno;

// A message-based WebSocket echo server.
serve((request) => {
serve({ port }, (request) => {
const { socket, response } = Deno.upgradeWebSocket(request);
socket.onmessage = (event) => {
socket.send(event.data);
};
return response;
}, { port });
});