-
-
Notifications
You must be signed in to change notification settings - Fork 450
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
testClient doesn't support websocket route #2490
Labels
enhancement
New feature or request.
Comments
Hi @goshander This is fixed with #2479. You can use the latest version, which includes the fix. |
src/services/realtime/test.spec.ts:
120 | if (method === "ws") {
121 | const targetUrl = replaceUrlProtocol(
122 | opts.args[0] && opts.args[0].param ? replaceUrlParam(url, opts.args[0].param) : url,
123 | "ws"
124 | );
125 | return new WebSocket(targetUrl);
^
SyntaxError: Invalid url for WebSocket /ws
at template-hono-ts-bun-full/node_modules/hono/dist/client/client.js:125:35 |
Is the URL an absolute URL? This should be an absolute URL. |
It is a testClient helper without create real web server |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the feature you are proposing?
const ws = await client.ws.$ws()
throw an error before try to create real WebSocket clientThe text was updated successfully, but these errors were encountered: