diff --git a/README.md b/README.md index 6fea4e3..06d9435 100644 --- a/README.md +++ b/README.md @@ -173,7 +173,7 @@ import { newWebSocketRpcSession } from "capnweb"; // feature, part of the "explicit resource management" spec. Alternatively, // we could declare `api` with `let` or `const` and make sure to call // `api[Symbol.dispose]()` to dispose it and close the connection later. -using api = newWebSocketRpcSession("https://example.com/api"); +using api = newWebSocketRpcSession("wss://example.com/api"); // Usage is exactly the same, except we don't have to await all the promises // at once.