=doc adding a note about websocket idle-timeout #19945

This commit is contained in:
Stefano Bonetti 2016-08-08 15:00:04 +01:00 committed by Johan Andrén
parent b54616aa87
commit f150b23c59
4 changed files with 14 additions and 0 deletions

View file

@ -95,6 +95,11 @@ and then responds with another text message that contains a greeting:
.. includecode:: ../../code/docs/http/scaladsl/server/WebSocketExampleSpec.scala
:include: websocket-handler
.. note::
Inactive WebSocket connections will be dropped according to the :ref:`idle-timeout settings <idle-timeouts-scala>`.
In case you need to keep inactive connections alive, you can either tweak your idle-timeout or inject
'keep-alive' messages regularly.
Routing support
---------------