We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0513584 commit 0dc4cbfCopy full SHA for 0dc4cbf
README.md
@@ -173,7 +173,7 @@ import { newWebSocketRpcSession } from "capnweb";
173
// feature, part of the "explicit resource management" spec. Alternatively,
174
// we could declare `api` with `let` or `const` and make sure to call
175
// `api[Symbol.dispose]()` to dispose it and close the connection later.
176
-using api = newWebSocketRpcSession<PublicApi>("https://example.com/api");
+using api = newWebSocketRpcSession<PublicApi>("wss://example.com/api");
177
178
// Usage is exactly the same, except we don't have to await all the promises
179
// at once.
0 commit comments