Spamworldpro Mini Shell
Spamworldpro


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/transports/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/corals/ts.corals.io/frontend/node_modules/pusher-js/src/core/transports/url_schemes.ts
import Defaults from '../defaults';
import { default as URLScheme, URLSchemeParams } from './url_scheme';

function getGenericURL(
  baseScheme: string,
  params: URLSchemeParams,
  path: string
): string {
  var scheme = baseScheme + (params.useTLS ? 's' : '');
  var host = params.useTLS ? params.hostTLS : params.hostNonTLS;
  return scheme + '://' + host + path;
}

function getGenericPath(key: string, queryString?: string): string {
  var path = '/app/' + key;
  var query =
    '?protocol=' +
    Defaults.PROTOCOL +
    '&client=js' +
    '&version=' +
    Defaults.VERSION +
    (queryString ? '&' + queryString : '');
  return path + query;
}

export var ws: URLScheme = {
  getInitial: function(key: string, params: URLSchemeParams): string {
    var path = (params.httpPath || '') + getGenericPath(key, 'flash=false');
    return getGenericURL('ws', params, path);
  }
};

export var http: URLScheme = {
  getInitial: function(key: string, params: URLSchemeParams): string {
    var path = (params.httpPath || '/pusher') + getGenericPath(key);
    return getGenericURL('http', params, path);
  }
};

export var sockjs: URLScheme = {
  getInitial: function(key: string, params: URLSchemeParams): string {
    return getGenericURL('http', params, params.httpPath || '/pusher');
  },
  getPath: function(key: string, params: URLSchemeParams): string {
    return getGenericPath(key);
  }
};

Spamworldpro Mini