Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshmossas/h3-ws-listhen-bug
https://github.com/joshmossas/h3-ws-listhen-bug
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/joshmossas/h3-ws-listhen-bug
- Owner: joshmossas
- Created: 2024-03-19T20:39:38.000Z (8 months ago)
- Default Branch: master
- Last Pushed: 2024-04-03T16:09:28.000Z (7 months ago)
- Last Synced: 2024-04-03T17:31:48.082Z (7 months ago)
- Language: TypeScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.