diff options
author | Fbenas <philbeansburton@gmail.com> | 2017-03-21 23:26:10 +0000 |
---|---|---|
committer | Fbenas <philbeansburton@gmail.com> | 2017-03-21 23:26:10 +0000 |
commit | a74eee77954b4e874f032fdad735b283e0778902 (patch) | |
tree | 21d88820007a4a81a3cc4521e0c2b6ed338fa471 /cli-server.php | |
parent | 1eee94d2604fb43b5a4a21c281c72ad356906a88 (diff) |
Add a cli server
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(); |