Skip to content

Commit 66724b1

Browse files
committed
Support sending messages with empty payload
1 parent b00c7ff commit 66724b1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lib/src/main/java/ua/naiksoftware/stomp/client/StompClient.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ public void connect(List<StompHeader> _headers) {
7878
});
7979
}
8080

81+
public Observable<Void> send(String destination) {
82+
return send(new StompMessage(
83+
StompCommand.SEND,
84+
Collections.singletonList(new StompHeader(StompHeader.DESTINATION, destination)),
85+
null));
86+
}
87+
8188
public Observable<Void> send(String destination, String data) {
8289
return send(new StompMessage(
8390
StompCommand.SEND,

0 commit comments

Comments
 (0)