question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add custom headers support to the STOMP CONNECT frame

See original GitHub issue

Hello, 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.stompConnectand StompClient.connect functions.

Additionally, THANK YOU for such a great work on this modern library.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
Mostrapotskicommented, Sep 4, 2020

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:

@Mostrapotski https://github.com/Mostrapotski out of curiosity, which platform are you using Krossbow on? What’s your use case?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/joffrey-bion/krossbow/issues/64#issuecomment-687231804, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWCL7NUZ27LRKRQJMZCUSTSEEDY3ANCNFSM4QXVLYOA .

1reaction
Mostrapotskicommented, Sep 4, 2020

Forgot to say it’s all android.

On Fri, Sep 4, 2020, 18:21 Dimitri Canonne dimitri.canonne@gmail.com wrote:

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:

@Mostrapotski https://github.com/Mostrapotski out of curiosity, which platform are you using Krossbow on? What’s your use case?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/joffrey-bion/krossbow/issues/64#issuecomment-687231804, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEWCL7NUZ27LRKRQJMZCUSTSEEDY3ANCNFSM4QXVLYOA .

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found