diff --git a/akka-docs/rst/java/http/common/timeouts.rst b/akka-docs/rst/java/http/common/timeouts.rst index fe38391e6f..9e12cf9df1 100644 --- a/akka-docs/rst/java/http/common/timeouts.rst +++ b/akka-docs/rst/java/http/common/timeouts.rst @@ -10,6 +10,8 @@ are left to the streaming APIs and are easily implementable as patterns in user- Common timeouts --------------- +.. _idle-timeouts-java: + Idle timeouts ^^^^^^^^^^^^^ diff --git a/akka-docs/rst/java/http/server-side/websocket-support.rst b/akka-docs/rst/java/http/server-side/websocket-support.rst index d72555dfb6..84c5d1c7f6 100644 --- a/akka-docs/rst/java/http/server-side/websocket-support.rst +++ b/akka-docs/rst/java/http/server-side/websocket-support.rst @@ -104,6 +104,11 @@ and then responds with another text message that contains a greeting: .. includecode:: ../../code/docs/http/javadsl/server/WebSocketCoreExample.java :include: websocket-handler +.. note:: + Inactive WebSocket connections will be dropped according to the :ref:`idle-timeout settings `. + In case you need to keep inactive connections alive, you can either tweak your idle-timeout or inject + 'keep-alive' messages regularly. + Routing support --------------- diff --git a/akka-docs/rst/scala/http/common/timeouts.rst b/akka-docs/rst/scala/http/common/timeouts.rst index b4996bbf78..69b9f07d27 100644 --- a/akka-docs/rst/scala/http/common/timeouts.rst +++ b/akka-docs/rst/scala/http/common/timeouts.rst @@ -10,6 +10,8 @@ are left to the streaming APIs and are easily implementable as patterns in user- Common timeouts --------------- +.. _idle-timeouts-scala: + Idle timeouts ^^^^^^^^^^^^^ diff --git a/akka-docs/rst/scala/http/routing-dsl/websocket-support.rst b/akka-docs/rst/scala/http/routing-dsl/websocket-support.rst index 135a1d4009..cef1db7276 100644 --- a/akka-docs/rst/scala/http/routing-dsl/websocket-support.rst +++ b/akka-docs/rst/scala/http/routing-dsl/websocket-support.rst @@ -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 `. + In case you need to keep inactive connections alive, you can either tweak your idle-timeout or inject + 'keep-alive' messages regularly. + Routing support ---------------