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
ilog-0.4.0 node_modules/sockjs-client/lib/transport/htmlfile.js
ilog-0.3.3 node_modules/sockjs-client/lib/transport/htmlfile.js
jester-data-8.0.0 node_modules/sockjs-client/lib/transport/htmlfile.js
ezii-os-5.2.1 node_modules/sockjs-client/lib/transport/htmlfile.js
ezii-os-2.0.1 node_modules/sockjs-client/lib/transport/htmlfile.js
ezii-os-1.1.0 node_modules/sockjs-client/lib/transport/htmlfile.js
ezii-os-1.0.0 node_modules/sockjs-client/lib/transport/htmlfile.js
ezii-os-0.0.0.1.0 node_modules/sockjs-client/lib/transport/htmlfile.js
ezii-os-0.0.0.0.1 node_modules/sockjs-client/lib/transport/htmlfile.js
optimacms-0.4.3 spec/dummy/node_modules/sockjs-client/lib/transport/htmlfile.js
optimacms-0.4.2 spec/dummy/node_modules/sockjs-client/lib/transport/htmlfile.js
cortex-0.1.3 spec/dummy/node_modules/sockjs-client/lib/transport/htmlfile.js
dragonfly_puppeteer-0.1.0 node_modules/sockjs-client/lib/transport/htmlfile.js
lanes-0.8.0 node_modules/sockjs-client/lib/transport/htmlfile.js