golem
golem copied to clipboard
Is there a way to figure out if a connection is still connected on the server side?
Specifically given a *Connection object, is there a method that we can call on it that indicates to us that the *Connection object is still connected? Either a method or a struct variable, something that indicates that connection object is either still connected or not?
I don't think so. In my Golem project I put a connection in a map when a user connected, and then removed it from the map when they disconnected.