Closed micahbule closed 4 years ago
@micahbule, thanks for the issue! Working on it!
I have a fix ready. @micahbule, could you tell me if this is also reproducible in iOS?
@Rapsssito I haven't tried it on iOS as I don't have a device to try it with.
I will release an Android fix since I don't have enough time to debug iOS right now.
Sure thing. I'll try to reproduce it on iOS if I have time. Thanks so much!
Description
close
event for either client nor server doesn't fire when the other device disconnects.Steps to reproduce
Steps to reproduce the behavior:
close
event of the connectingsocket
.close
event of the client socket..close()
on either the socket connected to the TcpServer, or the one created by the TcpClient.Current behavior
If you call
.close()
on the socket connected to the TcpServer, only the event listener on the TcpServer will fire, not the one if the TcpClient. Vice versa.Expected behavior
Calling
.close()
on the socket will fire both theclose
event listeners registered on the server and client.Relevant information