Type Alias Hello
type Hello = {
compatible: boolean;
contact?: number;
lease?: number;
protocol: number;
type: "spool:hello";
version: string;
}
compatible: boolean;
contact?: number;
lease?: number;
protocol: number;
type: "spool:hello";
version: string;
}
Properties
compatible
compatible: boolean
Optionalcontact
contact?: number
epoch milliseconds of the worker's last server answer; absent until it has one
Optionallease
lease?: number
seconds the browser holds the worker script; absent from a worker built before the lease
protocol
protocol: number
type
type: "spool:hello"
version
version: string
the worker's answer to a page's
spool:hello