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