creates a new Socket for bidirectional communication with the server.
one or more protocols to use by the socket, default empty
url to connect