WS reconnect mechanism.