add java api for websocket testkit #21184

And additionally adds unit test for WebSocketDirectives #20466
This commit is contained in:
Hawstein 2016-09-02 19:28:49 +08:00 committed by Johan Andrén
parent df4a6270e6
commit b9a05aff96
14 changed files with 342 additions and 23 deletions

View file

@ -16,4 +16,5 @@ For more information about the WebSocket support, see :ref:`server-side-websocke
Example
-------
TODO: Example snippets for JavaDSL are subject to community contributions! Help us complete the docs, read more about it here: `write example snippets for Akka HTTP Java DSL #20466 <https://github.com/akka/akka/issues/20466>`_.
.. includecode:: ../../../../code/docs/http/javadsl/server/directives/WebSocketDirectivesExamplesTest.java#handleWebSocketMessages

View file

@ -20,4 +20,5 @@ For more information about the WebSocket support, see :ref:`server-side-websocke
Example
-------
TODO: Example snippets for JavaDSL are subject to community contributions! Help us complete the docs, read more about it here: `write example snippets for Akka HTTP Java DSL #20466 <https://github.com/akka/akka/issues/20466>`_.
.. includecode:: ../../../../code/docs/http/javadsl/server/directives/WebSocketDirectivesExamplesTest.java#handleWebSocketMessagesForProtocol