CI fix (last time :-|)
This commit is contained in:
parent
949e5119db
commit
bbea3e8e05
@ -34,7 +34,7 @@
|
||||
"name": "cboden/react"
|
||||
, "version": "dev-master"
|
||||
, "source": {
|
||||
"url": "git://github.com/cboden/Ratchet.git"
|
||||
"url": "git://github.com/cboden/SocketServer.git"
|
||||
, "type": "git"
|
||||
, "reference": "ratchet"
|
||||
}
|
||||
|
9
composer.lock
generated
9
composer.lock
generated
@ -1,5 +1,5 @@
|
||||
{
|
||||
"hash": "3933102e03b75b0fdf6cd460e9d3a808",
|
||||
"hash": "bd02fb0517b1805dc483bbb064341ced",
|
||||
"packages": [
|
||||
{
|
||||
"package": "cboden/react",
|
||||
@ -8,8 +8,8 @@
|
||||
},
|
||||
{
|
||||
"package": "doctrine/common",
|
||||
"version": "2.2.x-dev",
|
||||
"source-reference": "1e0aa60d109c630d19543d999f12e2852ef8f932"
|
||||
"version": "dev-master",
|
||||
"source-reference": "717ea940ff8fa0854e84a2249edadfb998f91406"
|
||||
},
|
||||
{
|
||||
"package": "evenement/evenement",
|
||||
@ -33,8 +33,7 @@
|
||||
},
|
||||
{
|
||||
"package": "symfony/validator",
|
||||
"version": "dev-master",
|
||||
"source-reference": "dac248b43b62d30023dd9b73ad7e5b7bc1128e5e"
|
||||
"version": "v2.0.10"
|
||||
}
|
||||
],
|
||||
"packages-dev": null,
|
||||
|
@ -1,28 +0,0 @@
|
||||
<?php
|
||||
namespace Ratchet\Component\WAMP\Resource;
|
||||
use Ratchet\Resource\AbstractConnectionDecorator;
|
||||
use Ratchet\Resrouce\ConnectionInterface;
|
||||
|
||||
/**
|
||||
* @property stdClass $WAMP
|
||||
*/
|
||||
class Connection extends AbstractConnectionDecorator {
|
||||
public function __construct() {
|
||||
// call write() with welcome message
|
||||
}
|
||||
|
||||
public function callResponse() {
|
||||
}
|
||||
|
||||
public function callError() {
|
||||
}
|
||||
|
||||
public function event() {
|
||||
}
|
||||
|
||||
public function write($data) {
|
||||
}
|
||||
|
||||
public function end() {
|
||||
}
|
||||
}
|
37
src/Ratchet/Component/WAMP/WampConnection.php
Normal file
37
src/Ratchet/Component/WAMP/WampConnection.php
Normal file
@ -0,0 +1,37 @@
|
||||
<?php
|
||||
namespace Ratchet\Component\WAMP\Resource;
|
||||
use Ratchet\Resource\AbstractConnectionDecorator;
|
||||
use Ratchet\Component\WAMP\WAMPServerComponent as WAMP;
|
||||
|
||||
/**
|
||||
* @property stdClass $WAMP
|
||||
*/
|
||||
class Connection extends AbstractConnectionDecorator {
|
||||
public function __construct() {
|
||||
$this->WAMP = new \StdClass;
|
||||
$this->WAMP->sessionId = uniqid();
|
||||
$this->WAMP->prefixes = array();
|
||||
|
||||
$this->getConnection()->send(json_encode(array(WAMP::MSG_WELCOME, $this->WAMP->sessionId, 1, \Ratchet\Resource\VERSION)));
|
||||
}
|
||||
|
||||
public function callResponse() {
|
||||
}
|
||||
|
||||
public function callError() {
|
||||
}
|
||||
|
||||
public function event() {
|
||||
}
|
||||
|
||||
public function addPrefix($curie, $uri) {
|
||||
}
|
||||
|
||||
public function send($data) {
|
||||
$this->getConnection()->send($data);
|
||||
}
|
||||
|
||||
public function close() {
|
||||
$this->getConnection()->close();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user