Compare commits
No commits in common. "master" and "v0.4.9" have entirely different histories.
@ -33,7 +33,7 @@
|
|||||||
, "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.0"
|
||||||
, "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"
|
||||||
|
@ -5,7 +5,7 @@ namespace mfmdevsystem\socket;
|
|||||||
* The version of socket being used
|
* The version of socket being used
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
const VERSION = 'mfmdevsystem/socket/0.4.9';
|
const VERSION = 'mfmdevsyste/socket/0.4.9';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A proxy object representing a connection to the application
|
* 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 = []) {
|
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));
|
||||||
|
@ -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)));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user