![]() 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/core/http/ |
import SocketHooks from './socket_hooks'; import URLLocation from './url_location'; import HTTPSocket from './http_socket'; var hooks: SocketHooks = { getReceiveURL: function(url: URLLocation, session: string): string { return url.base + '/' + session + '/xhr' + url.queryString; }, onHeartbeat: function() { // next HTTP request will reset server's activity timer }, sendHeartbeat: function(socket) { socket.sendRaw('[]'); }, onFinished: function(socket, status) { if (status === 200) { socket.reconnect(); } else { socket.onClose(1006, 'Connection interrupted (' + status + ')', false); } } }; export default hooks;