From 7c3a8b9e69a94d7adb50c53aede9d05c3cebcfae Mon Sep 17 00:00:00 2001 From: yura999999999 Date: Wed, 14 Dec 2016 09:40:31 +0300 Subject: [PATCH] Update WebSocketTransportHybi.php --- src/Devristo/Phpws/Protocol/WebSocketTransportHybi.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Devristo/Phpws/Protocol/WebSocketTransportHybi.php b/src/Devristo/Phpws/Protocol/WebSocketTransportHybi.php index 4740f0b..29eea9a 100644 --- a/src/Devristo/Phpws/Protocol/WebSocketTransportHybi.php +++ b/src/Devristo/Phpws/Protocol/WebSocketTransportHybi.php @@ -170,7 +170,7 @@ protected function processControlFrame(WebSocketFrame $frame) $this->_socket->close(); break; case WebSocketOpcode::PingFrame : - $frame = WebSocketFrame::create(WebSocketOpcode::PongFrame); + $frame = WebSocketFrame::create(WebSocketOpcode::PongFrame, $frame->getData()); $this->sendFrame($frame); break; }