Replies: 1 comment 3 replies
-
I don't think you can use Cloudflare Workers WebSocket as a client, only as a server. In case you need a server example, you can check it out here: cloudflare-worker-graphql-ws-template. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to create a Client for integration testing purposes in a Cloudflare Workers environment.
If I pass the "WebSocket" implementation provided by Cloudflare Workers, it fails the
isWebSocket
type guard, due to different naming of the membersCLOSED
,CLOSING
, etc.How should I work around this? Create some kind of wrapper class?
Thanks for your input!
Beta Was this translation helpful? Give feedback.
All reactions