From 4e8fca90327c5f63287351e01b46d44ebd0952eb Mon Sep 17 00:00:00 2001 From: Illia Kovalov Date: Mon, 9 Oct 2017 17:51:28 +0200 Subject: [PATCH] Update WsServer.php --- src/Ratchet/WebSocket/WsServer.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Ratchet/WebSocket/WsServer.php b/src/Ratchet/WebSocket/WsServer.php index 551c737..8030604 100644 --- a/src/Ratchet/WebSocket/WsServer.php +++ b/src/Ratchet/WebSocket/WsServer.php @@ -63,7 +63,6 @@ class WsServer implements HttpServerInterface { /** * @param \Ratchet\WebSocket\MessageComponentInterface|\Ratchet\MessageComponentInterface $component Your application to run with WebSockets - * @param int $keepAliveTimeout * @note If you want to enable sub-protocols have your component implement WsServerInterface as well */ public function __construct(ComponentInterface $component) { @@ -100,7 +99,6 @@ class WsServer implements HttpServerInterface { $this->ueFlowFactory = function() use ($reusableUnderflowException) { return $reusableUnderflowException; }; - $this->keepAliveTimeout = $keepAliveTimeout; } /** @@ -198,7 +196,6 @@ class WsServer implements HttpServerInterface { } public function enableKeepAlive(LoopInterface $loop, $interval = 30) { - $this->keepAliveEnabled = true; $lastPing = new Frame(uniqid(), true, Frame::OP_PING); $pingedConnections = new \SplObjectStorage; $splClearer = new \SplObjectStorage;