Compare commits
No commits in common. "master" and "v0.4.6" have entirely different histories.
@ -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"
|
||||
|
@ -2,10 +2,10 @@
|
||||
namespace mfmdevsystem\socket;
|
||||
|
||||
/**
|
||||
* 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
|
||||
|
@ -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));
|
||||
|
@ -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)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user