connect method
Implementation
Socket connect() {
if (connected) return this;
subEvents();
io.open(); // ensure open
if ('open' == io.readyState) onopen();
emit('connecting');
return this;
}
Socket connect() {
if (connected) return this;
subEvents();
io.open(); // ensure open
if ('open' == io.readyState) onopen();
emit('connecting');
return this;
}