fix ws reconnect and chrome disconnect issues