added periodic ping from client to server, triggering automatic connection recovery (working)
request current playback data on connect
moved reconnection code to close handler, as it's more robust