mirror of
https://github.com/whyour/qinglong.git
synced 2025-05-22 22:36:06 +08:00
20 lines
419 B
TypeScript
20 lines
419 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';
|