Skip to content

Commit 74c1339

Browse files
committed
wamp
1 parent 715bb7f commit 74c1339

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

docker-compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ services:
115115
- './:/app'
116116
entrypoint:
117117
- '/usr/bin/php'
118-
- 'vendor/voryx/thruway/Examples/SimpleWsRouter.php'
118+
- 'docker/thruway/WsRouter.php'
119119

120120
localstack:
121121
image: 'localstack/localstack:latest'

docker/thruway/WsRouter.php

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
require '../../vendor/autoload.php';
4+
5+
use Thruway\Peer\Router;
6+
use Thruway\Transport\RatchetTransportProvider;
7+
8+
$router = new Router();
9+
10+
$transportProvider = new RatchetTransportProvider('0.0.0.0', 9090);
11+
12+
$router->addTransportProvider($transportProvider);
13+
14+
$router->start();

0 commit comments

Comments
 (0)