typealias WorkerSendPayload

export declare type WorkerSendPayload = {
    op: WorkerSendPayloadOp.Connect;
    shardId: number;
} | {
    op: WorkerSendPayloadOp.Destroy;
    shardId: number;
    options?: WebSocketShardDestroyOptions;
} | {
    op: WorkerSendPayloadOp.Send;
    shardId: number;
    payload: GatewaySendPayload;
} | {
    op: WorkerSendPayloadOp.SessionInfoResponse;
    nonce: number;
    session: SessionInfo | null;
};

Union Members

{ op: WorkerSendPayloadOp.Connect; shardId: number; } | { op: WorkerSendPayloadOp.Destroy; shardId: number; options?: WebSocketShardDestroyOptions; } | { op: WorkerSendPayloadOp.Send; shardId: number; payload: GatewaySendPayload; } | { op: WorkerSendPayloadOp.SessionInfoResponse; nonce: number; session: SessionInfo | null; }