Resetting the web socket connection