Rocher0724 / socket.io-unity

MIT License
107 stars 19 forks source link

Keeps The Connection Alive After Closing The Play Scene #10

Closed DinShub closed 3 years ago

DinShub commented 3 years ago

Hey, I have this issue where the socket is still connecting to the server even after I close the play scene. Every minute it keeps connecting.

gdebojyoti commented 3 years ago

@DinShub Are you disconnecting the socket in the Destroy method?

private void OnDestroy () {
    socket.Disconnect ();
}
DinShub commented 3 years ago

I did, but I'm not using this package anymore. It did continue to send messages even though I disconnected, but its not relevant for me anymore, so I'm closing this thread.