I noticed that the onclose handler that gets passed in via the options in the constructor is never called if the sturdyWebSocket.close() method is called. After a quick look through the code, it looks like it is never dispatched. Should it be dispatched in the following line after calling ws.close()?
I noticed that the
onclosehandler that gets passed in via the options in the constructor is never called if thesturdyWebSocket.close()method is called. After a quick look through the code, it looks like it is never dispatched. Should it be dispatched in the following line after callingws.close()?sturdy-websocket/src/index.ts
Line 389 in 5a130e4