typealias WorkerSendPayload

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

Union Members

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