Repository: wicket Updated Branches: refs/heads/master 75422cc98 -> 09cdfbd3c
Remove the documentation about additional native web socket connections at the client side. There is no support for more than one connections at the server side for now (WebSocketConnectionRegistry). And there is no good use case for adding support for this at the moment Project: http://git-wip-us.apache.org/repos/asf/wicket/repo Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/09cdfbd3 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/09cdfbd3 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/09cdfbd3 Branch: refs/heads/master Commit: 09cdfbd3c635ded0c13be8b5bc45c84201331af1 Parents: 75422cc Author: Martin Tzvetanov Grigorov <[email protected]> Authored: Tue Feb 9 23:13:09 2016 +0100 Committer: Martin Tzvetanov Grigorov <[email protected]> Committed: Tue Feb 9 23:16:26 2016 +0100 ---------------------------------------------------------------------- .../guide/nativewebsockets/nativewebsockets_3.gdoc | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/wicket/blob/09cdfbd3/wicket-user-guide/src/docs/guide/nativewebsockets/nativewebsockets_3.gdoc ---------------------------------------------------------------------- diff --git a/wicket-user-guide/src/docs/guide/nativewebsockets/nativewebsockets_3.gdoc b/wicket-user-guide/src/docs/guide/nativewebsockets/nativewebsockets_3.gdoc index 87588f1..512ea50 100644 --- a/wicket-user-guide/src/docs/guide/nativewebsockets/nativewebsockets_3.gdoc +++ b/wicket-user-guide/src/docs/guide/nativewebsockets/nativewebsockets_3.gdoc @@ -3,22 +3,11 @@ By adding a @(Base)WebSocketBehavior@ to your component(s) Wicket will contribut Wicket.WebSocket.send('{msg: "my message"}'). {code} -If you need more WebSocket connections then you can do: -{code} -var ws = new Wicket.WebSocket(); -ws.send('message'); -{code} - -To close a connection: +To close the default connection: {code} Wicket.WebSocket.close() {code} -or -{code} -ws.close() -{code} - Wicket.WebSocket is a simple wrapper around the native window.WebSocket API which is used to intercept the calls and to fire special JavaScript events (Wicket.Event PubSub). Once a page that contributes @(Base)WebSocketBehavior@ is rendered the client may react on messages pushed by the server by subscribing to the @'/websocket/message'@ event:
