Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing webSocketImpl #342

Open
yovanoc opened this issue Oct 5, 2022 · 0 comments
Open

missing webSocketImpl #342

yovanoc opened this issue Oct 5, 2022 · 0 comments
Assignees

Comments

@yovanoc
Copy link

yovanoc commented Oct 5, 2022

I think you should add this webSocketImpl directly to the generated code otherwise for those using subscriptions there are error by default just after generating.

import WebSocket from "isomorphic-ws";

// ....

const client = createClient({
   webSocketImpl: WebSocket,
    url: String(options[0]),
    connectionParams: Object.fromEntries(new Headers(options[1]?.headers).entries()),
  });
@aexol aexol self-assigned this Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants