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

Elysia WebSocket doesn't work when aot is off #948

Open
azezsan opened this issue Dec 18, 2024 · 0 comments
Open

Elysia WebSocket doesn't work when aot is off #948

azezsan opened this issue Dec 18, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@azezsan
Copy link

azezsan commented Dec 18, 2024

What version of Elysia is running?

1.1.26

What platform is your computer?

wsl ubuntu

What steps can reproduce the bug?

after creating a new elysia app set aot to false and add a websocket

import { Elysia } from "elysia";

new Elysia({ aot: false })
  .ws("/ws", {
    message(ws, message) {
      ws.send(message)
    },
  })
  .listen(3000);

What is the expected behavior?

Connected to ws://localhost:3000/ws

What do you see instead?

Could not connect to ws://localhost:3000/ws

Additional information

it simply doesn't work.

Have you try removing the node_modules and bun.lockb and try again yet?

yes

@azezsan azezsan added the bug Something isn't working label Dec 18, 2024
@azezsan azezsan changed the title Elysia doesn't work when aot is off Elysia WebSocket doesn't work when aot is off Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant