Type alias WorkerReceivePayload

WorkerReceivePayload: {
    data: any;
    event: WebSocketShardEvents;
    op: Event;
    shardId: number;
} | {
    nonce: number;
    op: CancelIdentify;
} | {
    nonce: number;
    op: FetchStatusResponse;
    status: WebSocketShardStatus;
} | {
    nonce: number;
    op: RetrieveSessionInfo;
    shardId: number;
} | {
    nonce: number;
    op: WaitForIdentify;
    shardId: number;
} | {
    op: Connected;
    shardId: number;
} | {
    op: Destroyed;
    shardId: number;
} | {
    op: UpdateSessionInfo;
    session: SessionInfo | null;
    shardId: number;
} | {
    op: WorkerReady;
}

Type declaration

  • data: any
  • event: WebSocketShardEvents
  • op: Event
  • shardId: number

Type declaration

Type declaration

Type declaration

Type declaration

Type declaration

Type declaration

Type declaration

Type declaration

Generated using TypeDoc