Update version
Some checks are pending
CI / PHPUnit (highest, 5.4) (push) Waiting to run
CI / PHPUnit (highest, 5.5) (push) Waiting to run
CI / PHPUnit (highest, 5.6) (push) Waiting to run
CI / PHPUnit (highest, 7.0) (push) Waiting to run
CI / PHPUnit (highest, 7.1) (push) Waiting to run
CI / PHPUnit (highest, 7.2) (push) Waiting to run
CI / PHPUnit (highest, 7.3) (push) Waiting to run
CI / PHPUnit (highest, 7.4) (push) Waiting to run
CI / PHPUnit (lowest, 5.4) (push) Waiting to run

This commit is contained in:
Mohamad Faeez 2025-04-09 18:36:55 +08:00
parent 6313156a71
commit 51828a7d3f
3 changed files with 3 additions and 3 deletions

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' => \Ratchet\VERSION 'X-Powered-By' => \mfmdevsystem\socket\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, \Ratchet\VERSION))); $this->send(json_encode(array(WAMP::MSG_WELCOME, $this->WAMP->sessionId, 1, \mfmdevsystem\socket\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', \Ratchet\VERSION); $response = $this->handshakeNegotiator->handshake($request)->withHeader('X-Powered-By', \mfmdevsystem\socket\VERSION);
$conn->send(Message::toString($response)); $conn->send(Message::toString($response));