Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
timonson committed Sep 30, 2021
1 parent 53cc8bf commit 57cc98a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,7 @@ const rpcMethods = {
noise.map((el) => el.toUpperCase()).join(" "),
};

// HTTP:
listenAndServe("0.0.0.0:8000", (req) => respond(rpcMethods, req));
// WebSockets:
listenAndServe(
"0.0.0.0:8000",
(req) => respond(rpcMethods, req, { proto: "ws" }),
);

console.log("listening on 0.0.0.0:8000");
```
Expand Down

0 comments on commit 57cc98a

Please sign in to comment.