Skip to content

Commit 57cc98a

Browse files
committed
Update example
1 parent 53cc8bf commit 57cc98a

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@ const rpcMethods = {
2121
noise.map((el) => el.toUpperCase()).join(" "),
2222
};
2323

24-
// HTTP:
2524
listenAndServe("0.0.0.0:8000", (req) => respond(rpcMethods, req));
26-
// WebSockets:
27-
listenAndServe(
28-
"0.0.0.0:8000",
29-
(req) => respond(rpcMethods, req, { proto: "ws" }),
30-
);
3125

3226
console.log("listening on 0.0.0.0:8000");
3327
```

0 commit comments

Comments
 (0)