/** * Stoppe le serveur */ public static function stopInstance() { self::$instance->getLoop()->stop(); self::$instance = null; }
/** * @param array $msg */ public function send($msg) { $this->connexion->send($msg); Serveur::getInstance()->log('>#' . $this->getRessourceId() . ' - ' . $msg); }