connect method

Socket connect()

Implementation

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