[WebSocket] Added missing method

Re-added the disableVersion method to WsServer
Updated composer meta
Updated composer lock file with latest React changes
This commit is contained in:
Chris Boden 2012-07-09 15:28:40 -04:00
parent 13919b9209
commit 70ba5d18d5
3 changed files with 20 additions and 13 deletions

View File

@ -11,8 +11,13 @@
{ {
"name": "Chris Boden" "name": "Chris Boden"
, "email": "cboden@gmail.com" , "email": "cboden@gmail.com"
, "role": "Developer"
} }
] ]
, "support": {
"forum": "https://groups.google.com/forum/#!forum/ratchet-php"
, "issues": "https://github.com/cboden/Ratchet/issues"
}
, "autoload": { , "autoload": {
"psr-0": { "psr-0": {
"Ratchet\\Tests": "tests" "Ratchet\\Tests": "tests"

20
composer.lock generated
View File

@ -1,5 +1,5 @@
{ {
"hash": "34dae9a47679408d18e075f80e827ea4", "hash": "31c6274af1ace64552f45608ba1f829d",
"packages": [ "packages": [
{ {
"package": "evenement/evenement", "package": "evenement/evenement",
@ -20,8 +20,8 @@
{ {
"package": "react/socket", "package": "react/socket",
"version": "dev-master", "version": "dev-master",
"source-reference": "bdc8d6a75ae7160578dcbe2e2c2c9d4acd6332ec", "source-reference": "b9ea58b137ab5ae8162f0a73f16112c9d9293591",
"commit-date": "1341694306" "commit-date": "1341800000"
}, },
{ {
"package": "react/stream", "package": "react/stream",
@ -32,14 +32,8 @@
{ {
"package": "symfony/event-dispatcher", "package": "symfony/event-dispatcher",
"version": "dev-master", "version": "dev-master",
"alias-pretty-version": "2.1.x-dev", "source-reference": "0dc437f2eca7dea19facfde6db7f7f5e8e71d0bc",
"alias-version": "2.1.9999999.9999999-dev" "commit-date": "1341838460"
},
{
"package": "symfony/event-dispatcher",
"version": "dev-master",
"source-reference": "v2.1.0-BETA1",
"commit-date": "1338018513"
}, },
{ {
"package": "symfony/http-foundation", "package": "symfony/http-foundation",
@ -50,8 +44,8 @@
{ {
"package": "symfony/http-foundation", "package": "symfony/http-foundation",
"version": "dev-master", "version": "dev-master",
"source-reference": "3e53f0a9f802dc1f34a722109df0b0d2679671a8", "source-reference": "985f3aa6c9f8074b2d1a12345e0768f8c24aa72d",
"commit-date": "1341379664" "commit-date": "1341838460"
} }
], ],
"packages-dev": null, "packages-dev": null,

View File

@ -150,6 +150,14 @@ class WsServer implements MessageComponentInterface {
} }
} }
/**
* Disable a specific version of the WebSocket protocol
* @param int Version ID to disable
*/
public function disableVersion($versionId) {
$this->versioner->disableVersion($versionId);
}
/** /**
* @param string * @param string
* @return boolean * @return boolean