*update dist
This commit is contained in:
parent
b2aa51d8de
commit
a53c238889
|
@ -39,6 +39,7 @@ declare class Channel extends Client {
|
||||||
}): Message;
|
}): Message;
|
||||||
queueMessage(message: Message): Promise<void>;
|
queueMessage(message: Message): Promise<void>;
|
||||||
private init;
|
private init;
|
||||||
|
destroy(error: Error): void;
|
||||||
}
|
}
|
||||||
declare class Message extends Client {
|
declare class Message extends Client {
|
||||||
private encoding;
|
private encoding;
|
||||||
|
|
|
@ -107,6 +107,9 @@ class Channel extends Client {
|
||||||
ret.catch((e) => this._created.reject(e));
|
ret.catch((e) => this._created.reject(e));
|
||||||
return this._created.promise;
|
return this._created.promise;
|
||||||
}
|
}
|
||||||
|
destroy(error) {
|
||||||
|
this._send?.({ action: "destroy", args: [error] });
|
||||||
|
}
|
||||||
}
|
}
|
||||||
class Message extends Client {
|
class Message extends Client {
|
||||||
encoding;
|
encoding;
|
||||||
|
|
Loading…
Reference in New Issue