forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
340 B
14 lines
340 B
<?php |
|
|
|
require __DIR__ . '/../vendor/autoload.php'; |
|
include __DIR__ . '/../includes/config.php'; |
|
|
|
use websocket\Servidorsocket; |
|
|
|
try { |
|
$app = new Ratchet\App('127.0.0.1', 8080, '0.0.0.0'); |
|
$app->route('/ws', new Servidorsocket(), array('*')); |
|
$app->run(); |
|
} catch (\Exception $th) { |
|
echo $th->getMessage(); |
|
} |