Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
7 lines
366 B
Plaintext
7 lines
366 B
Plaintext
import { Options, WebSocketHook } from './types';
|
|
export interface SocketIOMessageData<T = unknown> {
|
|
type: string;
|
|
payload: T | null;
|
|
}
|
|
export declare const useSocketIO: <T = unknown>(url: string | (() => string | Promise<string>) | null, options?: Options, connect?: boolean) => WebSocketHook<SocketIOMessageData<T | null>, SocketIOMessageData<T | null>>;
|