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
Code not reloaded on websockets endpoints #909
Comments
Check your code, it might explain why: https://github.com/ricardovf/example-serverless-ws-offline-not-reloading/blob/5840584fb3add5b955c8853d63b01c91d0c12b2e/handler.ts#L16 |
You did not read the instructions on the readme to reproduce... "change the "hi" on the code to "hi 1" and send again the {"action": "default"} and you will not see the updated code" The point is that a code change is not reloading the handler, although it maintains the websocket connection opened. If we could use hot reload with typescript + serverless-offline it would be really great.. |
Why not use a tool like nodemon? |
Bug Report
Current Behavior
Websockets works as expected. If i change the code and send a new message using wscat, the returned message is the same, even if the code seems to be loaded again...
Sample Code
https://github.com/ricardovf/example-serverless-ws-offline-not-reloading
The text was updated successfully, but these errors were encountered: