diff options
Diffstat (limited to 'cli-server.php')
-rw-r--r-- | cli-server.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cli-server.php b/cli-server.php new file mode 100644 index 0000000..db6ac19 --- /dev/null +++ b/cli-server.php @@ -0,0 +1,13 @@ +<?php + +use Ratchet\Server\IoServer; +use App\Ratchet\Chat; + +require 'vendor/autoload.php'; + +$server = IoServer::factory( + new Chat(), + 8080 +); + +$server->run(); |