Warning: Use of undefined constant Symbol - assumed 'Symbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215 Warning: Use of undefined constant JavaScriptSymbol - assumed 'JavaScriptSymbol' (this will throw an Error in a future version of PHP) in /mnt/new-ebs/workbench-106550/lib/dojo/util/docscripts/lib/parser2/dojo2.inc on line 215

dojox/socket/Reconnect.js

  • Provides:

    • dojox.socket.Reconnect
  • dojox.socket.Reconnect

    • parameters:
      • socket: (typeof Socket)
        to add reconnection support to.
      • options
    • summary
      Provides auto-reconnection to a websocket after it has been closed
    • return_summary
      An object that implements the WebSocket API
    • example
      You can use the Reconnect module:
       dojo.require("dojox.socket");
       dojo.require("dojox.socket.Reconnect");
       var socket = dojox.socket({url:"/comet"});
       // add auto-reconnect support
       socket = dojox.socket.Reconnect(socket);
    • type
      Function
  • dojox.socket

    • type
      Object
  • dojox

    • type
      Object