We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
WebSockets always throw errors when attempting to connect:
129 | message: (ws, msg) => router.handleWebSocket(ws).message(msg), 130 | }, 131 | async fetch(req, server) { 132 | let ctx = new Context(req, server); 133 | const res = await router.handle(ctx); 134 | return res.status === 404 ? notFoundHandler(ctx) : res; ^ TypeError: null is not an object (evaluating 'res.status') at node_modules/baojs/dist/bao.js:134:24
All I've done here is setup a simple websocket connection:
app.ws("/ws/room", { close(ws) { }, message(ws, msg) { }, open(ws) { }, });
It looks like the route handler doesn't create any Response object, but the fetch() method expects one to always be present.
fetch()
Bao version: 0.2.1 Bun verions: 1.0.18
The text was updated successfully, but these errors were encountered:
This pull request #30 will fix that issue.
Sorry, something went wrong.
No branches or pull requests
WebSockets always throw errors when attempting to connect:
All I've done here is setup a simple websocket connection:
It looks like the route handler doesn't create any Response object, but the
fetch()
method expects one to always be present.Bao version: 0.2.1
Bun verions: 1.0.18
The text was updated successfully, but these errors were encountered: