*Add support for destroy
This commit is contained in:
parent
40c042bb49
commit
b42069231c
|
@ -556,8 +556,9 @@ async function createProtomuxMessage(aq: ActiveQuery) {
|
|||
};
|
||||
|
||||
aq.setReceiveUpdate?.((data) => {
|
||||
if (data.action === "send") {
|
||||
message.send(...data.args);
|
||||
if (["send", "destroy"].includes(data.action)) {
|
||||
message[data.action](...data.args);
|
||||
return;
|
||||
}
|
||||
|
||||
defers[data.action]?.resolve(data.args);
|
||||
|
|
Loading…
Reference in New Issue