diff options
author | Marvin Borner | 2018-10-30 18:41:29 +0100 |
---|---|---|
committer | Marvin Borner | 2018-10-30 18:41:29 +0100 |
commit | 39aa8530424310663c888f9e02224158961532e3 (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /infrastructure/Console/Commands/WebSocketServerCommand.php | |
parent | bd568608bcda0729044e823aedfa799e10692e14 (diff) |
PHP is crap
Diffstat (limited to 'infrastructure/Console/Commands/WebSocketServerCommand.php')
-rw-r--r-- | infrastructure/Console/Commands/WebSocketServerCommand.php | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/infrastructure/Console/Commands/WebSocketServerCommand.php b/infrastructure/Console/Commands/WebSocketServerCommand.php deleted file mode 100644 index 764e16a..0000000 --- a/infrastructure/Console/Commands/WebSocketServerCommand.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php -namespace Infrastructure\Console\Commands; - -use Illuminate\Console\Command; -use Infrastructure\Http\WebSocketController; -use Ratchet\Http\HttpServer; -use Ratchet\Server\IoServer; -use Ratchet\WebSocket\WsServer; - -class WebSocketServerCommand extends Command -{ - /** - * The console command name. - * - * @var string - */ - protected $name = 'websocket'; - - /** - * Execute the console command. - * - * @return void - */ - public function fire() - { - $server = IoServer::factory( - new HttpServer( - new WsServer( - new WebSocketController() - ) - ), - 1337 - ); - $this->line('Starting websocket...'); - $server->run(); - } -}
\ No newline at end of file |