Example usage for Java org.springframework.messaging.simp.stomp StompSession fields, constructors, methods, implement or subclass
The text is from its open source code.
void | disconnect() Disconnect the session by sending a DISCONNECT frame. |
Receiptable | send(String destination, Object payload) Send a message to the specified destination, converting the payload to a byte[] with the help of a org.springframework.messaging.converter.MessageConverter MessageConverter . |
Receiptable | send(StompHeaders headers, Object payload) An overloaded version of #send(String,Object) with full StompHeaders instead of just a destination. |
void | setAutoReceipt(boolean enabled) When enabled, a receipt header is automatically added to future send and subscribe operations on this session, which causes the server to return a RECEIPT. |
Subscription | subscribe(String destination, StompFrameHandler handler) Subscribe to the given destination by sending a SUBSCRIBE frame and handle received messages with the specified StompFrameHandler . |
Subscription | subscribe(StompHeaders headers, StompFrameHandler handler) An overloaded version of #subscribe(String,StompFrameHandler) with full StompHeaders instead of just a destination. |