feat(): add event-driven example for WS API commands
This commit is contained in:
@@ -203,9 +203,11 @@ export class WsStore<
|
||||
removeAfter: boolean,
|
||||
): void {
|
||||
const promise = this.getDeferredPromise(wsKey, promiseRef);
|
||||
|
||||
if (promise?.reject) {
|
||||
promise.reject(value);
|
||||
}
|
||||
|
||||
if (removeAfter) {
|
||||
this.removeDeferredPromise(wsKey, promiseRef);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user