dojox/rpc/Client.js

  • Provides:

    • dojox.rpc.Client
  • dojo._defaultXhr

    • summary
  • dojo.xhr

    • type
      Function
    • parameters:
      • method: (typeof )
      • args: (typeof )
    • source: [view]
        var headers = args.headers = args.headers || {};
        // set the client id, this can be used by servers to maintain state information with the
        // a specific client. Many servers rely on sessions for this, but sessions are shared
        // between tabs/windows, so this is not appropriate for application state, it
        // really only useful for storing user authentication
        headers["Client-Id"] = dojox.rpc.Client.clientId;
        // set the sequence id. HTTP is non-deterministic, message can arrive at the server
        // out of order. In complex Ajax applications, it may be more to ensure that messages
        // can be properly sequenced deterministically. This applies a sequency id to each
        // XHR request so that the server can order them.
        headers["Seq-Id"] = dojox._reqSeqId = (dojox._reqSeqId||0)+1;
        return dojo._defaultXhr.apply(dojo,arguments);
    • chains:
      • dojo._defaultXhr: (call)
    • summary
  • dojox.rpc.Client.clientId

    • summary
  • dojox.rpc.Client

    • type
      Object
    • summary
  • dojox.rpc

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary