summaryrefslogtreecommitdiff
path: root/cli-server.php
diff options
context:
space:
mode:
authorFbenas <philbeansburton@gmail.com>2017-03-21 23:26:10 +0000
committerFbenas <philbeansburton@gmail.com>2017-03-21 23:26:10 +0000
commita74eee77954b4e874f032fdad735b283e0778902 (patch)
tree21d88820007a4a81a3cc4521e0c2b6ed338fa471 /cli-server.php
parent1eee94d2604fb43b5a4a21c281c72ad356906a88 (diff)
Add a cli server
Diffstat (limited to 'cli-server.php')
-rw-r--r--cli-server.php13
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();