Merge branch 'master' into 0.4
# Conflicts: # README.md
This commit is contained in:
commit
4ac1f914f3
@ -4,7 +4,7 @@
|
|||||||
[](http://socketo.me/reports/ab/index.html)
|
[](http://socketo.me/reports/ab/index.html)
|
||||||
[](https://packagist.org/packages/cboden/ratchet)
|
[](https://packagist.org/packages/cboden/ratchet)
|
||||||
|
|
||||||
A PHP 5.4 library for asynchronously serving WebSockets.
|
A PHP library for asynchronously serving WebSockets.
|
||||||
Build up your application through simple interfaces and re-use your application without changing any of its code just by combining different components.
|
Build up your application through simple interfaces and re-use your application without changing any of its code just by combining different components.
|
||||||
|
|
||||||
##Requirements
|
##Requirements
|
||||||
@ -79,5 +79,5 @@ class MyChat implements MessageComponentInterface {
|
|||||||
// Then some JavaScript in the browser:
|
// Then some JavaScript in the browser:
|
||||||
var conn = new WebSocket('ws://localhost:8080/echo');
|
var conn = new WebSocket('ws://localhost:8080/echo');
|
||||||
conn.onmessage = function(e) { console.log(e.data); };
|
conn.onmessage = function(e) { console.log(e.data); };
|
||||||
conn.send('Hello Me!');
|
conn.onopen = function(e) { conn.send('Hello Me!'); };
|
||||||
```
|
```
|
||||||
|
@ -33,4 +33,7 @@
|
|||||||
, "symfony/http-foundation": "^2.2|^3.0"
|
, "symfony/http-foundation": "^2.2|^3.0"
|
||||||
, "symfony/routing": "^2.2|^3.0"
|
, "symfony/routing": "^2.2|^3.0"
|
||||||
}
|
}
|
||||||
|
, "require-dev": {
|
||||||
|
"phpunit/phpunit": "~4.8"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@ use Ratchet\ConnectionInterface;
|
|||||||
* WebSocket Application Messaging Protocol
|
* WebSocket Application Messaging Protocol
|
||||||
*
|
*
|
||||||
* @link http://wamp.ws/spec
|
* @link http://wamp.ws/spec
|
||||||
* @link https://github.com/oberstet/AutobahnJS
|
* @link https://github.com/oberstet/autobahn-js
|
||||||
*
|
*
|
||||||
* +--------------+----+------------------+
|
* +--------------+----+------------------+
|
||||||
* | Message Type | ID | DIRECTION |
|
* | Message Type | ID | DIRECTION |
|
||||||
|
@ -8,7 +8,7 @@ use Ratchet\ConnectionInterface;
|
|||||||
* Enable support for the official WAMP sub-protocol in your application
|
* Enable support for the official WAMP sub-protocol in your application
|
||||||
* WAMP allows for Pub/Sub and RPC
|
* WAMP allows for Pub/Sub and RPC
|
||||||
* @link http://wamp.ws The WAMP specification
|
* @link http://wamp.ws The WAMP specification
|
||||||
* @link https://github.com/oberstet/AutobahnJS Souce for client side library
|
* @link https://github.com/oberstet/autobahn-js Souce for client side library
|
||||||
* @link http://autobahn.s3.amazonaws.com/js/autobahn.min.js Minified client side library
|
* @link http://autobahn.s3.amazonaws.com/js/autobahn.min.js Minified client side library
|
||||||
*/
|
*/
|
||||||
class WampServer implements MessageComponentInterface, WsServerInterface {
|
class WampServer implements MessageComponentInterface, WsServerInterface {
|
||||||
|
Loading…
Reference in New Issue
Block a user