Add custom headers support to the STOMP CONNECT frame
See original GitHub issueHello, I need to send additional data in the connect frame (device-id and token). It is not stated forbidden (nor allowed) in the stomp protocol documentation, but unfortunately some servers are expecting values here. I see you do not allow custom header for that frame, is that intentional, or maybe you didn’t have the use case yet ?
If you accept, i can do a PR to edit WebSocketSession.stompConnect
and StompClient.connect
functions.
Additionally, THANK YOU for such a great work on this modern library.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
How to custom header during handshake? · Issue #83 - GitHub
Hi, I am looking for a way to add custom header for websocket handshake, not normal websocket frame, so is there any way...
Read more >How to add custom headers to STOMP CREATED message in ...
The question is how can i add custom headers for message with STOMP 'CONNECTED' command, which is sent by server after establishing WebSocket ......
Read more >STOMP Protocol Specification, Version 1.2
From STOMP 1.1 and onwards, the CONNECT frame MUST include the accept-version header. It SHOULD be set to a comma separated list of...
Read more >STOMP Support - Spring
They are included by default. If you want to add your own headers and want the standard headers to also be mapped, you...
Read more >STOMP Protocol Features and the STOMP Bridge
SUBSCRIBE. selector. Supported as described in the STOMP JMS Bindings on SUBSCRIBE . ; SUBSCRIBE. id. A STOMP client should always specify an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I work for a French retailer (red branding, I believe you can guess who it is!)
When entering the store, you can scan a loyalty card on a tablet to unlock a wireless device that you can pick up. While shopping and adding products to your basket, use the wireless device to scan barcodes.
Before leaving the store, just put the wireless device back, use the tablet to pay.
We have APIs for the tablet and each wireless devices, and also a stomp server. Needless to say between http long polling and your exquisite kotlin lib, the choice was a no brainer.
Custom header are needed in the connect frame to identify tablets and wireless devices. We also have a jwt token for Auth.
As a side note, you should consider adding a donate button.
On Fri, Sep 4, 2020, 17:47 Joffrey Bion notifications@github.com wrote:
Forgot to say it’s all android.
On Fri, Sep 4, 2020, 18:21 Dimitri Canonne dimitri.canonne@gmail.com wrote: