Un-indent $server->run()
in README, use port 8000
This commit is contained in:
parent
550b32e1e7
commit
8264616454
@ -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