CasperSecurity

Current Path : /var/www/hrms.uiet.co.in/node_modules/pusher-js/src/core/http/
Upload File :
Current File : /var/www/hrms.uiet.co.in/node_modules/pusher-js/src/core/http/http_polling_socket.ts

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;
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY