![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/dceprojects.corals.io/node_modules/sockjs-client/lib/ |
'use strict'; var iframeUtils = require('./utils/iframe') ; function FacadeJS(transport) { this._transport = transport; transport.on('message', this._transportMessage.bind(this)); transport.on('close', this._transportClose.bind(this)); } FacadeJS.prototype._transportClose = function(code, reason) { iframeUtils.postMessage('c', JSON.stringify([code, reason])); }; FacadeJS.prototype._transportMessage = function(frame) { iframeUtils.postMessage('t', frame); }; FacadeJS.prototype._send = function(data) { this._transport.send(data); }; FacadeJS.prototype._close = function() { this._transport.close(); this._transport.removeAllListeners(); }; module.exports = FacadeJS;