Typed Stomp Session
A StompSession with additional methods to serialize/deserialize message bodies based on a KClass.
Functions
Sends an ABORT frame with the given transactionId.
Sends a BEGIN frame with the given transactionId.
Sends a COMMIT frame with the given transactionId.
If graceful disconnect is enabled (which is the default), sends a DISCONNECT frame to close the session, waits for the relevant RECEIPT frame, and then closes the connection. Otherwise, force-closes the connection.
Subscribes and returns a Flow of MESSAGE frames that unsubscribes automatically when the collector is done or cancelled. The returned flow can be collected only once.
Subscribes and returns a Flow of messages of type T that unsubscribes automatically when the collector is done or cancelled. The returned flow can be collected only once.
Extensions
Sends a SEND frame to the server at the given destination with the given body, converted appropriately.
Subscribes to the given destination and returns a Flow of messages of type T that unsubscribes automatically when the collector is done or cancelled. The returned flow can be collected only once.