@tygr/socket
Version:
Use websockets to extend redux functionality to server code
42 lines (41 loc) • 1.37 kB
TypeScript
import { Action } from '@tygr/core';
export declare class RegisterClientToServerActions implements Action {
actions: string[];
readonly type: string;
constructor(actions: string[]);
}
export declare class ClientConnect implements Action {
sessionId: string;
readonly type: string;
constructor(sessionId: string);
}
export declare class ServerConnect implements Action {
readonly type: string;
}
export declare class ClientDisconnect implements Action {
sessionId: string;
readonly type: string;
constructor(sessionId: string);
}
export declare class ServerDisconnect implements Action {
readonly type: string;
}
export declare class ClientAction implements Action {
sessionId: string;
action: Action;
readonly type: string;
constructor(sessionId: string, action: Action);
}
export declare class ServerToClientAction implements Action {
sessionIds: string[];
action: Action;
readonly type: string;
constructor(sessionIds: string[], action: Action);
}
export declare const REGISTER_CLIENT_TO_SERVER_ACTIONS: string;
export declare const CLIENT_CONNECT: string;
export declare const SERVER_CONNECT: string;
export declare const CLIENT_DISCONNECT: string;
export declare const SERVER_DISCONNECT: string;
export declare const CLIENT_ACTION: string;
export declare const SERVER_TO_CLIENT_ACTION: string;