ryo-ma / deno-websocket

🦕 A simple WebSocket library like ws of node.js library for deno
https://deno.land/x/websocket
MIT License
152 stars 18 forks source link

[BUG] "close" event not dispatched #16

Closed angelhdzmultimedia closed 3 years ago

angelhdzmultimedia commented 3 years ago

I'm using https://deno.land/x/websocket@v0.0.6 and the close event is not being dispatched. Only the connection and message events are being dispatched.

My code:

image

angelhdzmultimedia commented 3 years ago

Update

Same issue on v0.0.5.

angelhdzmultimedia commented 3 years ago

Solved

I was using a WebSocket library on ActionScript 3.0 AIR Android App as client, and the close event was not being dispatched. But then I switched to an HTML/Javascript client using the JS WebSocket built-in API, and it worked right away.

So, my first guess is this ActionScript 3.0 WebSocket library I found is not telling the server that the client closed.