So, I would like to know the address of the client when is disconnects, but by the time the connection has been removed, the HostedConnection no longer has an address:
@Override
public void connectionRemoved(Server server, HostedConnection conn) {
LOGGER.log(Level.INFO, "Disconnected {0}", conn.getAddress());
}
This will return: Disconnected null
Is there any way around this, I feel like this is a bug, but is this intentional?
Thanks,
Trevor