mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-23 06:46:09 +08:00
21 lines
438 B
TypeScript
21 lines
438 B
TypeScript
export class SockMessage {
|
|
message?: string;
|
|
type?: SockMessageType;
|
|
references?: number[];
|
|
|
|
constructor(options: SockMessage) {
|
|
this.type = options.type;
|
|
this.message = options.message;
|
|
this.references = options.references;
|
|
}
|
|
}
|
|
|
|
export type SockMessageType =
|
|
| 'ping'
|
|
| 'installDependence'
|
|
| 'uninstallDependence'
|
|
| 'updateSystemVersion'
|
|
| 'manuallyRunScript'
|
|
| 'runSubscriptionEnd'
|
|
| 'reloadSystem';
|