diff options
Diffstat (limited to 'desktop/node_modules/@xhayper/discord-rpc/dist/transport/IPC.d.ts')
-rw-r--r-- | desktop/node_modules/@xhayper/discord-rpc/dist/transport/IPC.d.ts | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/desktop/node_modules/@xhayper/discord-rpc/dist/transport/IPC.d.ts b/desktop/node_modules/@xhayper/discord-rpc/dist/transport/IPC.d.ts new file mode 100644 index 0000000..848788a --- /dev/null +++ b/desktop/node_modules/@xhayper/discord-rpc/dist/transport/IPC.d.ts @@ -0,0 +1,23 @@ +import { Transport, type TransportOptions } from "../structures/Transport"; +export declare enum IPC_OPCODE { + HANDSHAKE = 0, + FRAME = 1, + CLOSE = 2, + PING = 3, + PONG = 4 +} +export type FormatFunction = (id: number) => string | undefined; +export type IPCTransportOptions = { + pathList?: FormatFunction[]; +} & TransportOptions; +export declare class IPCTransport extends Transport { + pathList: FormatFunction[]; + private socket?; + get isConnected(): boolean; + constructor(options: IPCTransportOptions); + private getSocket; + connect(): Promise<void>; + send(message?: any, op?: IPC_OPCODE): void; + ping(): void; + close(): Promise<void>; +} |