summaryrefslogtreecommitdiff
path: root/cli-server.php
diff options
context:
space:
mode:
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();