diff options
author | Fbenas <philbeansburton@gmail.com> | 2017-03-12 23:57:42 +0000 |
---|---|---|
committer | Fbenas <philbeansburton@gmail.com> | 2017-03-12 23:57:42 +0000 |
commit | 1eee94d2604fb43b5a4a21c281c72ad356906a88 (patch) | |
tree | 23c095b5db60c48dae443356392f5a5eb8a9c9f2 /server.php | |
parent | edfd095021ee5d89f53da4fd78d7dea7346d7617 (diff) |
Added identify form and Ratchet websockets test stuff
Diffstat (limited to 'server.php')
-rw-r--r-- | server.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/server.php b/server.php new file mode 100644 index 0000000..2e54925 --- /dev/null +++ b/server.php @@ -0,0 +1,19 @@ +<?php + +use Ratchet\Server\IoServer; +use Ratchet\Http\HttpServer; +use Ratchet\WebSocket\WsServer; +use App\Ratchet\Chat; + +require 'vendor/autoload.php'; + +$server = IoServer::factory( + new HttpServer( + new WsServer( + new Chat() + ) + ), + 8080 +); + +$server->run(); |