![]() 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/ts.corals.io/frontend/node_modules/pusher-js/src/runtimes/isomorphic/http/ |
import HTTPRequest from 'core/http/http_request'; import HTTPSocket from 'core/http/http_socket'; import SocketHooks from 'core/http/socket_hooks'; import RequestHooks from 'core/http/request_hooks'; import streamingHooks from 'core/http/http_streaming_socket'; import pollingHooks from 'core/http/http_polling_socket'; import xhrHooks from './http_xhr_request'; import HTTPFactory from 'core/http/http_factory'; var HTTP: HTTPFactory = { createStreamingSocket(url: string): HTTPSocket { return this.createSocket(streamingHooks, url); }, createPollingSocket(url: string): HTTPSocket { return this.createSocket(pollingHooks, url); }, createSocket(hooks: SocketHooks, url: string): HTTPSocket { return new HTTPSocket(hooks, url); }, createXHR(method: string, url: string): HTTPRequest { return this.createRequest(xhrHooks, method, url); }, createRequest(hooks: RequestHooks, method: string, url: string): HTTPRequest { return new HTTPRequest(hooks, method, url); } }; export default HTTP;