Skip to content

Commit ebf5477

Browse files
committed
fix README
1 parent e76f323 commit ebf5477

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ async function main() {
154154
const rpc = createRPC<IframeSchema, ParentSchema>({
155155
// wait for a connection with the parent window and
156156
// pass the transport to our RPC
157-
transport: await createIframeParentTransport({ id: "my-rpc" }),
157+
transport: await createIframeParentTransport({ transportId: "my-rpc" }),
158158
// provide the request handler
159159
requestHandler,
160160
});
@@ -198,7 +198,7 @@ async function main() {
198198
// pass the transport to our RPC
199199
transport: await createIframeTransport(
200200
document.getElementById("my-iframe"),
201-
{ id: "my-rpc" },
201+
{ transportId: "my-rpc" },
202202
),
203203
});
204204

0 commit comments

Comments
 (0)