Established the connection with the WS