*add destroy method
This commit is contained in:
parent
73963ff1b5
commit
0483c27c94
|
@ -255,6 +255,10 @@ class Message extends Client {
|
||||||
public send(data: any) {
|
public send(data: any) {
|
||||||
this._send?.({ action: "send", args: [data] });
|
this._send?.({ action: "send", args: [data] });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public destroy(error: Error) {
|
||||||
|
this._send?.({ action: "destroy", args: [error] });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const createChannel = factory<Channel>(Channel, MODULE);
|
const createChannel = factory<Channel>(Channel, MODULE);
|
||||||
|
|
Loading…
Reference in New Issue