typealias WorkerRecievePayload

export declare type WorkerRecievePayload = {
    op: WorkerRecievePayloadOp.Connected;
    shardId: number;
} | {
    op: WorkerRecievePayloadOp.Destroyed;
    shardId: number;
} | {
    op: WorkerRecievePayloadOp.Event;
    shardId: number;
    event: WebSocketShardEvents;
    data: any;
} | {
    op: WorkerRecievePayloadOp.RetrieveSessionInfo;
    shardId: number;
    nonce: number;
} | {
    op: WorkerRecievePayloadOp.UpdateSessionInfo;
    shardId: number;
    session: SessionInfo | null;
};

Union Members

{ op: WorkerRecievePayloadOp.Connected; shardId: number; } { op: WorkerRecievePayloadOp.Destroyed; shardId: number; } { op: WorkerRecievePayloadOp.Event; shardId: number; event: WebSocketShardEvents; data: any; } { op: WorkerRecievePayloadOp.RetrieveSessionInfo; shardId: number; nonce: number; } { op: WorkerRecievePayloadOp.UpdateSessionInfo; shardId: number; session: SessionInfo null; }