socket.io-deno icon indicating copy to clipboard operation
socket.io-deno copied to clipboard

readyState bug while sending data from server

Open itsfuad opened this issue 1 year ago • 0 comments

Current implementation of socketio doesn't have if (this.writable && this.readyState === "open") check before sending the data. This causes server crash.

Screenshot 2024-08-27 192747

Because the code was on the Render cloud, I did not found any way to reproduce it on my pc. Thus by adding this.readyState === "open" check, the issue was fixed.

I pulled a request with the fix.

itsfuad avatar Aug 29 '24 06:08 itsfuad