diff --git a/src/Socket/Http/CloseResponseTrait.php b/src/Socket/Http/CloseResponseTrait.php index edff221..90504a3 100644 --- a/src/Socket/Http/CloseResponseTrait.php +++ b/src/Socket/Http/CloseResponseTrait.php @@ -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' => \Ratchet\VERSION + 'X-Powered-By' => \mfmdevsystem\socket\VERSION, ], $additional_headers)); $conn->send(Message::toString($response)); diff --git a/src/Socket/Wamp/WampConnection.php b/src/Socket/Wamp/WampConnection.php index e807d4f..85153a8 100644 --- a/src/Socket/Wamp/WampConnection.php +++ b/src/Socket/Wamp/WampConnection.php @@ -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, \Ratchet\VERSION))); + $this->send(json_encode(array(WAMP::MSG_WELCOME, $this->WAMP->sessionId, 1, \mfmdevsystem\socket\VERSION))); } /** diff --git a/src/Socket/WebSocket/WsServer.php b/src/Socket/WebSocket/WsServer.php index ac0c66c..640d80a 100644 --- a/src/Socket/WebSocket/WsServer.php +++ b/src/Socket/WebSocket/WsServer.php @@ -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', \Ratchet\VERSION); + $response = $this->handshakeNegotiator->handshake($request)->withHeader('X-Powered-By', \mfmdevsystem\socket\VERSION); $conn->send(Message::toString($response));