Keepalive in App, doc fix
This commit is contained in:
parent
7f532e1747
commit
e986a76cbb
@ -113,6 +113,10 @@ class App {
|
||||
$decorated = $controller;
|
||||
}
|
||||
|
||||
if ($decorated instanceof WsServer) {
|
||||
$decorated->enableKeepAlive($this->_server->loop, 30);
|
||||
}
|
||||
|
||||
if ($httpHost === null) {
|
||||
$httpHost = $this->httpHost;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ class WsConnection extends AbstractConnectionDecorator {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int|\Ratchet\RFC6455\Messaging\Protocol\DataInterface
|
||||
* @param int|\Ratchet\RFC6455\Messaging\DataInterface
|
||||
*/
|
||||
public function close($code = 1000) {
|
||||
if ($this->WebSocket->closing) {
|
||||
|
@ -38,7 +38,7 @@ class WsServer implements HttpServerInterface {
|
||||
private $closeFrameChecker;
|
||||
|
||||
/**
|
||||
* @var \Ratchet\RFC6455\Handshake\Negotiator
|
||||
* @var \Ratchet\RFC6455\Handshake\ServerNegotiator
|
||||
*/
|
||||
private $handshakeNegotiator;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user