public function __construct($host, $port) { $this->server = new swoole_websocket_server($host, $port); }