github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/themes/wind/static/libs/sockjs-client-1.1.0/lib/transport/sender/xhr-local.js (about) 1 'use strict'; 2 3 var inherits = require('inherits') 4 , XhrDriver = require('../driver/xhr') 5 ; 6 7 function XHRLocalObject(method, url, payload /*, opts */) { 8 XhrDriver.call(this, method, url, payload, { 9 noCredentials: true 10 }); 11 } 12 13 inherits(XHRLocalObject, XhrDriver); 14 15 XHRLocalObject.enabled = XhrDriver.enabled; 16 17 module.exports = XHRLocalObject;