Merge pull request #16 from igorw/patch-1
Un-indent `$server->run()` in README, use port 8000
This commit is contained in:
commit
2a41d17393
@ -84,9 +84,9 @@ class Chat implements MessageComponentInterface {
|
||||
}
|
||||
}
|
||||
|
||||
// Run the server application through the WebSocket protocol
|
||||
$server = new IOServerComponent(new WebSocketComponent(new Chat));
|
||||
$server->run(80);
|
||||
// Run the server application through the WebSocket protocol
|
||||
$server = new IOServerComponent(new WebSocketComponent(new Chat));
|
||||
$server->run(8000);
|
||||
```
|
||||
|
||||
# php chat.php
|
Loading…
Reference in New Issue
Block a user