taro-sockjs-client
Version:
sockjs-client for Taro
15 lines (10 loc) • 334 B
JavaScript
import inherits from '../../utils/inherits'
import XhrDriver from '../driver/xhr'
function XHRLocalObject(method, url, payload /*, opts */) {
XhrDriver.call(this, method, url, payload, {
noCredentials: true,
})
}
inherits(XHRLocalObject, XhrDriver)
XHRLocalObject.enabled = XhrDriver.enabled
export default XHRLocalObject