We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15546fc commit 3adaa2fCopy full SHA for 3adaa2f
lib/src/main/java/ua/naiksoftware/stomp/client/StompClient.java
@@ -51,7 +51,8 @@ public void connect(List<StompHeader> _headers) {
51
.subscribe(lifecycleEvent -> {
52
switch (lifecycleEvent.getType()) {
53
case OPENED:
54
- List<StompHeader> headers = Arrays.asList(new StompHeader(StompHeader.VERSION, SUPPORTED_VERSIONS));
+ List<StompHeader> headers = new ArrayList<>();
55
+ headers.add(new StompHeader(StompHeader.VERSION, SUPPORTED_VERSIONS));
56
if (_headers != null) headers.addAll(_headers);
57
mConnectionProvider.send(new StompMessage(StompCommand.CONNECT, headers, null).compile())
58
.subscribe();
0 commit comments