Compare commits
No commits in common. "master" and "v0.4.5" have entirely different histories.
@ -32,9 +32,9 @@
|
|||||||
}
|
}
|
||||||
, "require": {
|
, "require": {
|
||||||
"php": ">=8.4.0"
|
"php": ">=8.4.0"
|
||||||
, "mfmdevsystem/rfc6455": "^0.4.2"
|
, "mfmdevsystem/rfc6455": "^0.4.1"
|
||||||
, "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"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace mfmdevsystem\socket;
|
namespace Ratchet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Wraps ConnectionInterface objects via the decorator pattern but allows
|
* Wraps ConnectionInterface objects via the decorator pattern but allows
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace mfmdevsystem\socket;
|
namespace Ratchet;
|
||||||
use React\EventLoop\LoopInterface;
|
use React\EventLoop\LoopInterface;
|
||||||
use React\EventLoop\Factory as LoopFactory;
|
use React\EventLoop\Factory as LoopFactory;
|
||||||
use React\Socket\Server as Reactor;
|
use React\Socket\Server as Reactor;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace mfmdevsystem\socket;
|
namespace Ratchet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the interface to build a Ratchet application with.
|
* This is the interface to build a Ratchet application with.
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace mfmdevsystem\socket;
|
namespace Ratchet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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
|
||||||
|
@ -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));
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace mfmdevsystem\socket;
|
namespace Ratchet;
|
||||||
|
|
||||||
interface MessageComponentInterface extends ComponentInterface, MessageInterface {
|
interface MessageComponentInterface extends ComponentInterface, MessageInterface {
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace mfmdevsystem\socket;
|
namespace Ratchet;
|
||||||
|
|
||||||
interface MessageInterface {
|
interface MessageInterface {
|
||||||
/**
|
/**
|
||||||
|
@ -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));
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace mfmdevsystem\socket;
|
namespace Ratchet;
|
||||||
|
|
||||||
abstract class AbstractMessageComponentTestCase extends \PHPUnit_Framework_TestCase {
|
abstract class AbstractMessageComponentTestCase extends \PHPUnit_Framework_TestCase {
|
||||||
protected $_app;
|
protected $_app;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace mfmdevsystem\socket;
|
namespace Ratchet;
|
||||||
use mfmdevsystem\socket\ConnectionInterface;
|
use mfmdevsystem\socket\ConnectionInterface;
|
||||||
use mfmdevsystem\socket\MessageComponentInterface;
|
use mfmdevsystem\socket\MessageComponentInterface;
|
||||||
use mfmdevsystem\socket\WebSocket\WsServerInterface;
|
use mfmdevsystem\socket\WebSocket\WsServerInterface;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace mfmdevsystem\socket;
|
namespace Ratchet;
|
||||||
use mfmdevsystem\socket\Mock\ConnectionDecorator;
|
use mfmdevsystem\socket\Mock\ConnectionDecorator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user