Skip to content

Commit 3820385

Browse files
committed
Committed by Github action
master: { "stompjs": "6.1.0", "rx-stomp": "1.0.2", "ng2-stompjs": "8.0.0" } develop: { "stompjs": "6.1.0", "rx-stomp": "1.1.0", "ng2-stompjs": "8.0.0" }
1 parent 9cecd6b commit 3820385

File tree

2 files changed

+19
-6
lines changed

2 files changed

+19
-6
lines changed

api-docs/develop/classes/RxStompRPC.html

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ <h3 id="constructor">Constructor</h3>
121121
</tr>
122122
<tr>
123123
<td class="col-md-4">
124-
<div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">consolidated/rx-stomp/src/rx-stomp-rpc.ts:25</a></div>
124+
<div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">consolidated/rx-stomp/src/rx-stomp-rpc.ts:30</a></div>
125125
</td>
126126
</tr>
127127

@@ -203,7 +203,7 @@ <h3 id="methods">
203203

204204
<tr>
205205
<td class="col-md-4">
206-
<div class="io-line">Defined in <a href="" data-line="50" class="link-to-prism">consolidated/rx-stomp/src/rx-stomp-rpc.ts:50</a></div>
206+
<div class="io-line">Defined in <a href="" data-line="56" class="link-to-prism">consolidated/rx-stomp/src/rx-stomp-rpc.ts:56</a></div>
207207
</td>
208208
</tr>
209209

@@ -278,7 +278,7 @@ <h3 id="methods">
278278

279279
<tr>
280280
<td class="col-md-4">
281-
<div class="io-line">Defined in <a href="" data-line="61" class="link-to-prism">consolidated/rx-stomp/src/rx-stomp-rpc.ts:61</a></div>
281+
<div class="io-line">Defined in <a href="" data-line="67" class="link-to-prism">consolidated/rx-stomp/src/rx-stomp-rpc.ts:67</a></div>
282282
</td>
283283
</tr>
284284

@@ -366,6 +366,11 @@ <h3 id="methods">
366366

367367
private _repliesObservable: Observable&lt;IMessage&gt;;
368368

369+
private _customReplyQueue: boolean &#x3D; false;
370+
371+
// This is used to ensure that underlying subscription remains subscribed
372+
private _dummySubscription: Subscription;
373+
369374
/**
370375
* Create an instance, see the [guide](/guide/rx-stomp/ng2-stompjs/remote-procedure-call.html) for details.
371376
*/
@@ -378,6 +383,7 @@ <h3 id="methods">
378383
this._replyQueueName &#x3D; stompRPCConfig.replyQueueName;
379384
}
380385
if (stompRPCConfig.setupReplyQueue) {
386+
this._customReplyQueue &#x3D; true;
381387
this._setupReplyQueue &#x3D; stompRPCConfig.setupReplyQueue;
382388
}
383389
}
@@ -408,10 +414,17 @@ <h3 id="methods">
408414
const { destination, body, binaryBody } &#x3D; params;
409415

410416
if (!this._repliesObservable) {
411-
this._repliesObservable &#x3D; this._setupReplyQueue(
417+
const repliesObservable &#x3D; this._setupReplyQueue(
412418
this._replyQueueName,
413419
this.rxStomp
414420
);
421+
422+
// In case of custom queue, ensure it remains subscribed
423+
if (this._customReplyQueue) {
424+
this._dummySubscription &#x3D; repliesObservable.subscribe(() &#x3D;&gt; {});
425+
}
426+
427+
this._repliesObservable &#x3D; repliesObservable;
415428
}
416429

417430
return Observable.create((rpcObserver: Observer&lt;IMessage&gt;) &#x3D;&gt; {

api-docs/develop/js/search/search_index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)