README
Added PHP syntax to README
This commit is contained in:
parent
1fe4b051be
commit
6a5c708775
@ -15,6 +15,7 @@ Re-use your application without changing any of its code just by wrapping it in
|
||||
|
||||
###A Quick server example
|
||||
|
||||
```php
|
||||
<?php
|
||||
namespace Me;
|
||||
use Ratchet\SocketObserver, Ratchet\SocketInterface;
|
||||
@ -56,3 +57,4 @@ Re-use your application without changing any of its code just by wrapping it in
|
||||
// Run the server application through the WebSocket protocol
|
||||
$server = new Server(new Socket, new WebSocket(new Chat));
|
||||
$server->run('0.0.0.0', 80);
|
||||
```
|
Loading…
Reference in New Issue
Block a user