You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2018-06-29-using-stompjs-v5.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,7 +154,7 @@ The `subscribe` method returns an object with one attribute, `id`,
154
154
that correspond to the client subscription ID and one method `unsubscribe`
155
155
that can be used later on to unsubscribe the client from this destination.
156
156
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.
158
158
159
159
```javascript
160
160
callback=function (message) {
@@ -208,7 +208,7 @@ See [Send messages](#send-messages) for an example.
208
208
### Receiving binary messages
209
209
210
210
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).
212
212
213
213
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.
214
214
@@ -246,7 +246,7 @@ By default, the server will automatically acknowledge STOMP messages before the
246
246
247
247
Instead, the client can choose to handle message acknowledgment by subscribing to a destination with the `ack` header set to `client` or `client-individual`.
248
248
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.
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:
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.
273
273
274
274
## Transactions
275
275
@@ -358,7 +358,7 @@ Usually, headers of the incoming and outgoing frames are logged. Set [Client#log
358
358
### Frame callbacks
359
359
360
360
-[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.
362
362
-[Client#onUnhandledFrame](/api-docs/latest/classes/Client.html#onUnhandledFrame) - it will be invoked if broker sends a non standard STOMP Frame.
Copy file name to clipboardExpand all lines: _posts/2022-03-03-ng2-stompjs-to-rx-stomp.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ $ npm i @stomp/rx-stomp
25
25
26
26
### Change classes and imports
27
27
28
-
Change [InjectableRxStompConfig] from `@stomp/ng2-stompjs` -> [RxStompConfig] from `@stomp/rx-stomp`.
28
+
Change `InjectableRxStompConfig` from `@stomp/ng2-stompjs` -> [RxStompConfig] from `@stomp/rx-stomp`.
29
29
30
30
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.
31
31
@@ -84,6 +84,5 @@ import { rxStompServiceFactory } from './rx-stomp-service-factory';
84
84
Change import path for `RxStompService` from `@stomp/ng2-stompjs` to the local module.
0 commit comments