onconnect method

void onconnect()

Called by Namespace upon succesful middleware execution (ie: authorization).

@api private

Implementation

void onconnect() {
//    debug('socket connected - writing packet');
  nsp.connected[id] = this;
  join(id);
  packet(<dynamic, dynamic>{'type': connectValue});
}