Sha256: 2c5f8982aa49f39b27b1aec3ac1cc0a3bbe03f984172ba0f792bee017a32ab9c

Contents?: true

Size: 710 Bytes

Versions: 34

Compression:

Stored size: 710 Bytes

Contents

'use strict';

var inherits = require('inherits')
  , HtmlfileReceiver = require('./receiver/htmlfile')
  , XHRLocalObject = require('./sender/xhr-local')
  , AjaxBasedTransport = require('./lib/ajax-based')
  ;

function HtmlFileTransport(transUrl) {
  if (!HtmlfileReceiver.enabled) {
    throw new Error('Transport created when disabled');
  }
  AjaxBasedTransport.call(this, transUrl, '/htmlfile', HtmlfileReceiver, XHRLocalObject);
}

inherits(HtmlFileTransport, AjaxBasedTransport);

HtmlFileTransport.enabled = function(info) {
  return HtmlfileReceiver.enabled && info.sameOrigin;
};

HtmlFileTransport.transportName = 'htmlfile';
HtmlFileTransport.roundTrips = 2;

module.exports = HtmlFileTransport;

Version data entries

34 entries across 33 versions & 12 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/sockjs-client/lib/transport/htmlfile.js
disco_app-0.18.0 test/dummy/node_modules/sockjs-client/lib/transport/htmlfile.js
disco_app-0.18.2 test/dummy/node_modules/sockjs-client/lib/transport/htmlfile.js
disco_app-0.16.1 test/dummy/node_modules/sockjs-client/lib/transport/htmlfile.js
disco_app-0.15.2 test/dummy/node_modules/sockjs-client/lib/transport/htmlfile.js
disco_app-0.18.4 test/dummy/node_modules/sockjs-client/lib/transport/htmlfile.js
disco_app-0.18.1 test/dummy/node_modules/sockjs-client/lib/transport/htmlfile.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/sockjs-client/lib/transport/htmlfile.js
disco_app-0.14.0 test/dummy/node_modules/sockjs-client/lib/transport/htmlfile.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/sockjs-client/lib/transport/htmlfile.js
tang-0.2.1 spec/tang_app/node_modules/sockjs-client/lib/transport/htmlfile.js
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/sockjs-client/lib/transport/htmlfile.js
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/sockjs-client/lib/transport/htmlfile.js
ruby2js-4.0.4 lib/tasks/testrails/node_modules/sockjs-client/lib/transport/htmlfile.js
ruby2js-4.0.3 lib/tasks/testrails/node_modules/sockjs-client/lib/transport/htmlfile.js
tang-0.2.0 spec/tang_app/node_modules/sockjs-client/lib/transport/htmlfile.js
tang-0.1.0 spec/tang_app/node_modules/sockjs-client/lib/transport/htmlfile.js
tang-0.0.9 spec/tang_app/node_modules/sockjs-client/lib/transport/htmlfile.js
enju_library-0.3.8 spec/dummy/node_modules/sockjs-client/lib/transport/htmlfile.js
ilog-0.4.1 node_modules/sockjs-client/lib/transport/htmlfile.js