/**
  *  @description Here send _userSid
  * 
  * 
  */
 protected function emit()
 {
     $client = $this->createClient();
     $client->origin = $this->_nodeSocket->getOrigin();
     $client->sendCookie = true;
     $client->cookie = implode('; ', array('PHPSESSID=' . $this->_nodeSocket->_userSid, 'expires=' . (time() + $this->_nodeSocket->cookieLifeTime)));
     $client->setHandshakeTimeout($this->_nodeSocket->handshakeTimeout);
     $client->init();
     $client->createFrame()->endPoint('/server')->emit($this->getType(), $this->getFrame());
     $client->close();
 }
 protected function emit()
 {
     $client = $this->createClient();
     $client->origin = $this->_nodeSocket->getOrigin();
     $client->sendCookie = true;
     //		$client->setSslCert('/var/www/html/hola-trabajo-web/vendor/ratacibernetica/yii2-node-socket/lib/js/server/ssl/server.crt');
     $client->cookie = implode('; ', array('PHPSESSID=' . \Yii::$app->session->id, 'expires=' . (time() + $this->_nodeSocket->cookieLifeTime)));
     $client->setHandshakeTimeout($this->_nodeSocket->handshakeTimeout);
     $client->init();
     $client->createFrame()->endPoint('/server')->emit($this->getType(), $this->getFrame());
     $client->close();
 }