Skip to content

Commit de9dac9

Browse files
committed
Fix broken links
1 parent 28c426c commit de9dac9

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

_posts/2018-06-29-using-stompjs-v5.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ The `subscribe` method returns an object with one attribute, `id`,
154154
that correspond to the client subscription ID and one method `unsubscribe`
155155
that can be used later on to unsubscribe the client from this destination.
156156

157-
Every time the broker sends a message to the client, the client will, in turn, invoke the callback with a [Message](/api-docs/latest/classes/Message.html) object.
157+
Every time the broker sends a message to the client, the client will, in turn, invoke the callback with a [Message](/api-docs/latest/interfaces/IMessage.html) object.
158158

159159
```javascript
160160
callback = function (message) {
@@ -208,7 +208,7 @@ See [Send messages](#send-messages) for an example.
208208
### Receiving binary messages
209209

210210
The library does not guess whether the incoming data is text/binary.
211-
To access the message body as a string, please use [Message#body](/api-docs/latest/classes/Frame.html#body) and to access it as binary, please use [Message#binaryBody](/api-docs/latest/classes/Frame.html#binaryBody).
211+
To access the message body as a string, please use [Message#body](/api-docs/latest/interfaces/IFrame.html#body) and to access it as binary, please use [Message#binaryBody](/api-docs/latest/classes/Frame.html#binaryBody).
212212

213213
There is no generally accepted convention in STOMP (actually messaging in general) to indicate binary messages. Therefore, the message senders and receivers must agree on the required convention. For example, you may choose to set a `content-type` header to indicate a binary message.
214214

@@ -246,7 +246,7 @@ By default, the server will automatically acknowledge STOMP messages before the
246246

247247
Instead, the client can choose to handle message acknowledgment by subscribing to a destination with the `ack` header set to `client` or `client-individual`.
248248

249-
In that case, the client must use the [Message#ack](/api-docs/latest/classes/Message.html#ack) method to inform the broker that it has processed the message.
249+
In that case, the client must use the [Message#ack](/api-docs/latest/interfaces/IMessage.html#ack) method to inform the broker that it has processed the message.
250250

251251
```javascript
252252
const subscription = client.subscribe(
@@ -261,15 +261,15 @@ const subscription = client.subscribe(
261261
);
262262
```
263263

264-
The [Message#ack](/api-docs/latest/classes/Message.html#ack) method accepts `headers` argument for additional headers. For example, to acknowledge a message as part of a transaction and request a receipt:
264+
The [Message#ack](/api-docs/latest/interfaces/IMessage.html#ack) method accepts `headers` argument for additional headers. For example, to acknowledge a message as part of a transaction and request a receipt:
265265

266266
```javascript
267267
const tx = client.begin();
268268
message.ack({ transaction: tx.id, receipt: 'my-receipt' });
269269
tx.commit();
270270
```
271271

272-
The client should [Message#nack](/api-docs/latest/classes/Message.html#nack) to inform STOMP 1.1 or higher brokers that the client did not consume the message. It takes the same arguments as the [Message#ack](/api-docs/latest/classes/Message.html#ack) method.
272+
The client should [Message#nack](/api-docs/latest/interfaces/IMessage.html#nack) to inform STOMP 1.1 or higher brokers that the client did not consume the message. It takes the same arguments as the [Message#ack](/api-docs/latest/interfaces/IMessage.html#ack) method.
273273

274274
## Transactions
275275

@@ -358,7 +358,7 @@ Usually, headers of the incoming and outgoing frames are logged. Set [Client#log
358358
### Frame callbacks
359359

360360
- [Client#onUnhandledMessage](/api-docs/latest/classes/Client.html#onUnhandledMessage) - typically brokers will send messages corresponding to subscriptions. However, brokers may support concepts beyond the standard definition of STOMP - for example, RabbitMQ supports concepts of temporary queues. This callback will be invoked if any message is received that is not linked to a subscription.
361-
- [Client#onUnhandledReceipt](/api-docs/latest/classe /Client.html#onUnhandledReceipt) - you should prefer [Client#watchForReceipt](/api-docs/latest/classes/Client.html#watchForReceipt). If there is any incoming receipt for which there is no active watcher, this callback will be invoked.
361+
- [Client#onUnhandledReceipt](/api-docs/latest/classes/Client.html#onUnhandledReceipt) - you should prefer [Client#watchForReceipt](/api-docs/latest/classes/Client.html#watchForReceipt). If there is any incoming receipt for which there is no active watcher, this callback will be invoked.
362362
- [Client#onUnhandledFrame](/api-docs/latest/classes/Client.html#onUnhandledFrame) - it will be invoked if broker sends a non standard STOMP Frame.
363363

364364
## Advanced notes

_posts/2022-03-03-ng2-stompjs-to-rx-stomp.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ $ npm i @stomp/rx-stomp
2525

2626
### Change classes and imports
2727

28-
Change [InjectableRxStompConfig] from `@stomp/ng2-stompjs` -> [RxStompConfig] from `@stomp/rx-stomp`.
28+
Change `InjectableRxStompConfig` from `@stomp/ng2-stompjs` -> [RxStompConfig] from `@stomp/rx-stomp`.
2929

3030
Next, we will create `RxStompService` and `rxStompServiceFactory`. These were provided by `ng2-stompjs`. If you were using code similar to the tutorials, the following would work as-is.
3131

@@ -84,6 +84,5 @@ import { rxStompServiceFactory } from './rx-stomp-service-factory';
8484
Change import path for `RxStompService` from `@stomp/ng2-stompjs` to the local module.
8585

8686
[rx-stomp]: /api-docs/latest/classes/RxStomp.html
87-
[InjectableRxStompConfig]: /api-docs/latest/classes/InjectableRxStompConfig.html
8887
[RxStompConfig]: /api-docs/latest/classes/RxStompConfig.html
8988
[Using rx-stomp with Angular]: {% link _posts/2022-03-02-rx-stomp-with-angular.md %}

0 commit comments

Comments
 (0)