Type Alias: SyncClientError
Type Alias: SyncClientError
Section titled “Type Alias: SyncClientError”SyncClientError = {
kind:"push-http";status:number;url:string; } | {kind:"pull-http";status:number;url:string; } | {kind:"network";phase:"push"|"pull";cause:unknown; } | {kind:"rebase-replay";mutationName:string;cause:unknown; } | {kind:"schema-mismatch";phase:"push"|"pull";expected:string|undefined; } | {kind:"blob-upload-failed";hash:string;attempts:number;error:string; }
Defined in: client/src/sync/client.ts:334
Client-side sync events. Emitted through PlasmaClientOptions.onError.
Kept as a discriminated union so callers can dispatch by class without
regex on error messages.