Created
February 25, 2019 10:23
-
-
Save harendra21/36be48838389bbb961e1f93cefd1b46c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Ratchet\Server\IoServer; | |
use Ratchet\Http\HttpServer; | |
use Ratchet\WebSocket\WsServer; | |
use App\Chat; | |
require dirname(__DIR__) . '/vendor/autoload.php'; | |
$server = IoServer::factory( | |
new HttpServer( | |
new WsServer( | |
new Chat() | |
) | |
), | |
8080 | |
); | |
$server->run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment