src/httpOverWebSocket.js
/**
   * Superclass for Transport implementations, defining the behavior of how
   * data gets from client to server and vice versa.
   *
   * @param {object} config
   * @param {object} $q
   * @param {object} $interval
   */
Superclass for Transport implementations, defining the behavior of how
data gets from client to server and vice versa.


Superclass for Transport implementations defining the behavior of how data gets from client to server and vice versa .
function Transport (config, $cacheFactory, $q, $interval) {
    this.config = config || {};
    this.requests = {};
    this.$q = $q;
    this.defaultCache = $cacheFactory('httpOverWebSocketTransport');
    var self = this;
    this.config.timeout = this.config.timeout || 0;
    this.config.timeoutCheckInterval = this.config.timeoutCheckInterval || 100;
    var repeatCount = 0;
    var invokeApply = false;
    this.timeoutCheckPromise = $interval(function () {
      self.runTimeoutCheck();
    }, this.config.timeoutCheckInterval, repeatCount, invokeApply);
  }
function Transport ( config , $cacheFactory , $q , $interval ) { this . config = config || { } ; this . requests = { } ; this . $q = $q ; this . defaultCache = $cacheFactory ( 'httpOverWebSocketTransport' ) ; var self = this ; this . config . timeout = this . config . timeout || 0 ; this . config . timeoutCheckInterval = this . config . timeoutCheckInterval || 100 ; var repeatCount = 0 ; var invokeApply = false ; this . timeoutCheckPromise = $interval ( function ( ) { self . runTimeoutCheck ( ) ; } , this . config . timeoutCheckInterval , repeatCount , invokeApply ) ; }
Superclass for Transport implementations, defining the behavior of how
 data gets from client to server and vice versa.
Superclass for Transport implementations defining the behavior of how data gets from client to server and vice versa .
// Set up various defaults. // Start the timeout checks running. // Make sure that this has a value. // Continue indefinitely and don't run digests on each check.