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
When a websocket route is defined in a plugin, it won't work correctly. Ex.
import Elysia from "elysia" const ws = new Elysia().ws("/", { message(ws, message) { console.log(message) } }) const app = new Elysia() .use(ws) .listen(4500)
test script
const ws = new WebSocket("ws://0.0.0.0:4500/"); ws.addEventListener("error", (e)=>console.log(e)) ws.addEventListener("open", ()=>ws.send("ping"))
The console won't output anything but neither will the test script Expected console output: ping
ping
The text was updated successfully, but these errors were encountered:
Should be fixed in 62cd02a
Let me know if the problem still persists
Sorry, something went wrong.
It seems to be fixed, thanks!
No branches or pull requests
When a websocket route is defined in a plugin, it won't work correctly.
Ex.
test script
The console won't output anything but neither will the test script
Expected console output:
ping
The text was updated successfully, but these errors were encountered: