Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joshmossas/h3-ws-listhen-bug


https://github.com/joshmossas/h3-ws-listhen-bug

Last synced: 27 days ago
JSON representation

Awesome Lists containing this project

README

        

# h3 websocket bug reproduction

- start the server `pnpm run serve`
- open `http://localhost:3000` in the browser and try to send some messages.
- The client will be able to connect and send messages, but if you watch the server logs, none of the hooks in the WebSocketEventHandler will fire.

If you refactor the code to use the listhen cli (`listhen ./index.ts --ws`) instead of the exported `listen` function then it works as expected again.