Repository: wicket Updated Branches: refs/heads/wicket-6.x a634db1a7 -> 0159f1217
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/0159f121 Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/0159f121 Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/0159f121 Branch: refs/heads/wicket-6.x Commit: 0159f1217a66aa7fb8ab150f7cdfdf21c04ec4fe Parents: a634db1 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:15:24 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/0159f121/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:
