qinglong/back/data/sock.ts
2021-11-20 01:06:25 +08:00

18 lines
368 B
TypeScript

export class SockMessage {
message?: string;
type?: SockMessageType;
references?: string[];
constructor(options: SockMessage) {
this.type = options.type;
this.message = options.message;
this.references = options.references;
}
}
export type SockMessageType =
| 'ping'
| 'installDependence'
| 'updateSystemVersion'
| 'manuallyRunScript';