futureTick(function () use ($url) { $this->info('Started the WebSocket server on port '.$this->option('port')); }); $server = new WebsocketServer($url['host'], $this->option('port'), '0.0.0.0', $loop); $server->run(); } }