Compare commits

..

No commits in common. "master" and "v0.4.5" have entirely different histories.

13 changed files with 17 additions and 17 deletions

View File

@ -32,9 +32,9 @@
}
, "require": {
"php": ">=8.4.0"
, "mfmdevsystem/rfc6455": "^0.4.2"
, "react/socket": "^1.0"
, "react/event-loop": "^0.4.0"
, "mfmdevsystem/rfc6455": "^0.4.1"
, "react/socket": "^1.0 || ^0.8 || ^0.7 || ^0.6 || ^0.5"
, "react/event-loop": ">=0.4"
, "guzzlehttp/psr7": "^1.7|^2.0"
, "symfony/http-foundation": "^2.6|^3.0|^4.0|^5.0|^6.0"
, "symfony/routing": "^2.6|^3.0|^4.0|^5.0|^6.0"

View File

@ -1,5 +1,5 @@
<?php
namespace mfmdevsystem\socket;
namespace Ratchet;
/**
* Wraps ConnectionInterface objects via the decorator pattern but allows

View File

@ -1,5 +1,5 @@
<?php
namespace mfmdevsystem\socket;
namespace Ratchet;
use React\EventLoop\LoopInterface;
use React\EventLoop\Factory as LoopFactory;
use React\Socket\Server as Reactor;

View File

@ -1,5 +1,5 @@
<?php
namespace mfmdevsystem\socket;
namespace Ratchet;
/**
* This is the interface to build a Ratchet application with.

View File

@ -1,11 +1,11 @@
<?php
namespace mfmdevsystem\socket;
namespace Ratchet;
/**
* The version of socket being used
* The version of Ratchet being used
* @var string
*/
const VERSION = 'mfmdevsystem/socket/0.4.9';
const VERSION = 'Ratchet/0.4.4';
/**
* A proxy object representing a connection to the application

View File

@ -13,7 +13,7 @@ trait CloseResponseTrait {
*/
private function close(ConnectionInterface $conn, $code = 400, array $additional_headers = []) {
$response = new Response($code, array_merge([
'X-Powered-By' => \mfmdevsystem\socket\VERSION,
'X-Powered-By' => \Ratchet\VERSION
], $additional_headers));
$conn->send(Message::toString($response));

View File

@ -1,5 +1,5 @@
<?php
namespace mfmdevsystem\socket;
namespace Ratchet;
interface MessageComponentInterface extends ComponentInterface, MessageInterface {
}

View File

@ -1,5 +1,5 @@
<?php
namespace mfmdevsystem\socket;
namespace Ratchet;
interface MessageInterface {
/**

View File

@ -20,7 +20,7 @@ class WampConnection extends AbstractConnectionDecorator {
$this->WAMP->sessionId = str_replace('.', '', uniqid(mt_rand(), true));
$this->WAMP->prefixes = array();
$this->send(json_encode(array(WAMP::MSG_WELCOME, $this->WAMP->sessionId, 1, \mfmdevsystem\socket\VERSION)));
$this->send(json_encode(array(WAMP::MSG_WELCOME, $this->WAMP->sessionId, 1, \Ratchet\VERSION)));
}
/**

View File

@ -114,7 +114,7 @@ class WsServer implements HttpServerInterface {
$conn->WebSocket = new \StdClass;
$conn->WebSocket->closing = false;
$response = $this->handshakeNegotiator->handshake($request)->withHeader('X-Powered-By', \mfmdevsystem\socket\VERSION);
$response = $this->handshakeNegotiator->handshake($request)->withHeader('X-Powered-By', \Ratchet\VERSION);
$conn->send(Message::toString($response));

View File

@ -1,5 +1,5 @@
<?php
namespace mfmdevsystem\socket;
namespace Ratchet;
abstract class AbstractMessageComponentTestCase extends \PHPUnit_Framework_TestCase {
protected $_app;

View File

@ -1,5 +1,5 @@
<?php
namespace mfmdevsystem\socket;
namespace Ratchet;
use mfmdevsystem\socket\ConnectionInterface;
use mfmdevsystem\socket\MessageComponentInterface;
use mfmdevsystem\socket\WebSocket\WsServerInterface;

View File

@ -1,5 +1,5 @@
<?php
namespace mfmdevsystem\socket;
namespace Ratchet;
use mfmdevsystem\socket\Mock\ConnectionDecorator;
/**