Switched to Civetweb.
Refreshing page works now.
Connecting when already registered works too - closes the previous connection.
Closing tab will unregister player when timeout expires.
Fixed warning