futureTick(function () { $this->info('Started the WebSocket server on port '.$this->option('port')); }); // TODO: add an option to not start the echo server WebSocketRouter::echo(); // TODO: add flag for verbose mode, to send more things to console (new WebsocketServer($this->option('port'), '0.0.0.0', $loop))->run(); } }