Open R0uter opened 1 year ago
Not related to your question, but how did you manage to connect to the websocket while running on chalice local?
Not related to your question, but how did you manage to connect to the websocket while running on chalice local?
U don't, u need to deploy chalice first, then local debug. The websocket service between client and chalice is up in aws.🤔
When a Chalice project including websocket api, run it locally, it works fine except client closing the socket will trigger an error like this:
In my react.js client, it was correctly closed the socket by calling
mysocket.close()
Not sure how to fix this but in my experience, we should handle this exception
ConnectionResetError
since it not triggering any error in the aws api gateway, and it is quite a common action that the client-side drop the connection.Please leave a comment if you guys need further information 😬