diff --git a/README.md b/README.md index 5fa88e5..65aadc5 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ export const windowClient = createTRPCProxyClient({ import { relay } from 'trpc-browser/relay'; const port = chrome.runtime.connect(); -relay(port, window); +relay(window, port); ``` ## 🕸️ Example usage for windows