Compare commits

..

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

5 changed files with 7 additions and 7 deletions

View File

@ -33,8 +33,8 @@
, "require": { , "require": {
"php": ">=8.4.0" "php": ">=8.4.0"
, "mfmdevsystem/rfc6455": "^0.4.2" , "mfmdevsystem/rfc6455": "^0.4.2"
, "react/socket": "^1.0" , "react/socket": "^1.0 || ^0.8 || ^0.7 || ^0.6 || ^0.5"
, "react/event-loop": "^0.4.0" , "react/event-loop": ">=0.4"
, "guzzlehttp/psr7": "^1.7|^2.0" , "guzzlehttp/psr7": "^1.7|^2.0"
, "symfony/http-foundation": "^2.6|^3.0|^4.0|^5.0|^6.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" , "symfony/routing": "^2.6|^3.0|^4.0|^5.0|^6.0"

View File

@ -2,10 +2,10 @@
namespace mfmdevsystem\socket; namespace mfmdevsystem\socket;
/** /**
* The version of socket being used * The version of Ratchet being used
* @var string * @var string
*/ */
const VERSION = 'mfmdevsystem/socket/0.4.9'; const VERSION = 'Ratchet/0.4.4';
/** /**
* A proxy object representing a connection to the application * 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 = []) { private function close(ConnectionInterface $conn, $code = 400, array $additional_headers = []) {
$response = new Response($code, array_merge([ $response = new Response($code, array_merge([
'X-Powered-By' => \mfmdevsystem\socket\VERSION, 'X-Powered-By' => \Ratchet\VERSION
], $additional_headers)); ], $additional_headers));
$conn->send(Message::toString($response)); $conn->send(Message::toString($response));

View File

@ -20,7 +20,7 @@ class WampConnection extends AbstractConnectionDecorator {
$this->WAMP->sessionId = str_replace('.', '', uniqid(mt_rand(), true)); $this->WAMP->sessionId = str_replace('.', '', uniqid(mt_rand(), true));
$this->WAMP->prefixes = array(); $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 = new \StdClass;
$conn->WebSocket->closing = false; $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)); $conn->send(Message::toString($response));