Merge branch 'configurable-keep-alive-intervals'
This commit is contained in:
		
						commit
						bddcb1af17
					
				@ -104,16 +104,14 @@ class App {
 | 
			
		||||
            $decorated = $controller;
 | 
			
		||||
        } elseif ($controller instanceof WampServerInterface) {
 | 
			
		||||
            $decorated = new WsServer(new WampServer($controller));
 | 
			
		||||
            $decorated->enableKeepAlive($this->_server->loop);
 | 
			
		||||
        } elseif ($controller instanceof MessageComponentInterface) {
 | 
			
		||||
            $decorated = new WsServer($controller);
 | 
			
		||||
            $decorated->enableKeepAlive($this->_server->loop);
 | 
			
		||||
        } else {
 | 
			
		||||
            $decorated = $controller;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if ($decorated instanceof WsServer) {
 | 
			
		||||
            $decorated->enableKeepAlive($this->_server->loop, 30);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if ($httpHost === null) {
 | 
			
		||||
            $httpHost = $this->httpHost;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user