reconnectSocket

Reconnects the socket. Works only if the user was previously set and the WS connections is closed.