Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.216.95.250
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
socket.io-adapter /
dist /
Delete
Unzip
Name
Size
Permission
Date
Action
cjs
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
es
[ DIR ]
drwxrwxr-x
2022-08-30 11:49
index.d.ts
3.33
KB
-rw-rw-r--
2022-08-30 11:49
index.js
6.26
KB
-rw-rw-r--
2022-08-30 11:49
Save
Rename
/// <reference types="node" /> import { EventEmitter } from "events"; export declare type SocketId = string; export declare type Room = string; export interface BroadcastFlags { volatile?: boolean; compress?: boolean; local?: boolean; broadcast?: boolean; binary?: boolean; } export interface BroadcastOptions { rooms: Set<Room>; except?: Set<SocketId>; flags?: BroadcastFlags; } export declare class Adapter extends EventEmitter { readonly nsp: any; rooms: Map<Room, Set<SocketId>>; sids: Map<SocketId, Set<Room>>; private readonly encoder; /** * In-memory adapter constructor. * * @param {Namespace} nsp */ constructor(nsp: any); /** * To be overridden */ init(): Promise<void> | void; /** * To be overridden */ close(): Promise<void> | void; /** * Adds a socket to a list of room. * * @param {SocketId} id the socket id * @param {Set<Room>} rooms a set of rooms * @public */ addAll(id: SocketId, rooms: Set<Room>): Promise<void> | void; /** * Removes a socket from a room. * * @param {SocketId} id the socket id * @param {Room} room the room name */ del(id: SocketId, room: Room): Promise<void> | void; private _del; /** * Removes a socket from all rooms it's joined. * * @param {SocketId} id the socket id */ delAll(id: SocketId): void; /** * Broadcasts a packet. * * Options: * - `flags` {Object} flags for this packet * - `except` {Array} sids that should be excluded * - `rooms` {Array} list of rooms to broadcast to * * @param {Object} packet the packet object * @param {Object} opts the options * @public */ broadcast(packet: any, opts: BroadcastOptions): void; /** * Gets a list of sockets by sid. * * @param {Set<Room>} rooms the explicit set of rooms to check. */ sockets(rooms: Set<Room>): Promise<Set<SocketId>>; /** * Gets the list of rooms a given socket has joined. * * @param {SocketId} id the socket id */ socketRooms(id: SocketId): Set<Room> | undefined; /** * Returns the matching socket instances * * @param opts - the filters to apply */ fetchSockets(opts: BroadcastOptions): Promise<any[]>; /** * Makes the matching socket instances join the specified rooms * * @param opts - the filters to apply * @param rooms - the rooms to join */ addSockets(opts: BroadcastOptions, rooms: Room[]): void; /** * Makes the matching socket instances leave the specified rooms * * @param opts - the filters to apply * @param rooms - the rooms to leave */ delSockets(opts: BroadcastOptions, rooms: Room[]): void; /** * Makes the matching socket instances disconnect * * @param opts - the filters to apply * @param close - whether to close the underlying connection */ disconnectSockets(opts: BroadcastOptions, close: boolean): void; private apply; private computeExceptSids; /** * Send a packet to the other Socket.IO servers in the cluster * @param packet - an array of arguments, which may include an acknowledgement callback at the end */ serverSideEmit(packet: any[]): void; }