From f126b6836cf156c78ca30e36c856ff788cd259f8 Mon Sep 17 00:00:00 2001 From: Illia Kovalov Date: Thu, 28 Sep 2017 20:07:33 +0200 Subject: [PATCH] * @param int $keepAliveInterval Seconds between ping calls --- src/Ratchet/App.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Ratchet/App.php b/src/Ratchet/App.php index e3bc5ab..c119d41 100644 --- a/src/Ratchet/App.php +++ b/src/Ratchet/App.php @@ -97,10 +97,9 @@ class App { * @param ComponentInterface $controller Your application to server for the route. If not specified, assumed to be for a WebSocket * @param array $allowedOrigins An array of hosts allowed to connect (same host by default), ['*'] for any * @param string $httpHost Override the $httpHost variable provided in the __construct - * @param int $keepAliveInterval Seconds between ping calls * @return ComponentInterface|WsServer */ - public function route($path, ComponentInterface $controller, array $allowedOrigins = array(), $httpHost = null, $keepAliveInterval = 30) { + public function route($path, ComponentInterface $controller, array $allowedOrigins = array(), $httpHost = null) { if ($controller instanceof HttpServerInterface || $controller instanceof WsServer) { $decorated = $controller; } elseif ($controller instanceof WampServerInterface) { @@ -112,7 +111,7 @@ class App { } if ($decorated instanceof WsServer) { - $decorated->enableKeepAlive($this->_server->loop, $keepAliveInterval); + $decorated->enableKeepAlive($this->_server->loop, 30); } if ($httpHost === null) {