If an invalid URI is given that means if no transport factory specified can handle the given URI, a client socket stays in connecting state forever.
var socket = cettia.open("http://localhost:8080?transport=unknown");
socket.on("close", function() {
console.log("never called");
});
It should try a connection with a next URI or fire error and close event if there is no remaining URI.
If an invalid URI is given that means if no transport factory specified can handle the given URI, a client socket stays in
connectingstate forever.It should try a connection with a next URI or fire
errorandcloseevent if there is no remaining URI.