Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connected to server undefined - misleading #4

Closed
jjenzz opened this issue Aug 23, 2018 · 8 comments
Closed

Connected to server undefined - misleading #4

jjenzz opened this issue Aug 23, 2018 · 8 comments

Comments

@jjenzz
Copy link

jjenzz commented Aug 23, 2018

const client = Stomp.over(() => new WebSocket('wss://some-url'));

client.heartbeat.outgoing = 20000;
client.heartbeat.incoming = 0;
client.reconnect_delay = 3000;
client.connect();

image

@kum-deepak
Copy link
Member

Typically the CONNECTED frame contains a header server. If that header is not present it will show undefined in the log message.

Which STOMP broker are you using?

@jjenzz
Copy link
Author

jjenzz commented Aug 23, 2018

Ah, seems we aren't using a STOMP broker and have something more custom. Sounds like if we add the server header ourselves it should solve this. Thanks for taking the time to reply @kum-deepak 🙂

@jjenzz jjenzz closed this as completed Aug 23, 2018
@NarasimhaMuddunri
Copy link

I am very new to this subject, am facing same issue can any one help how to add the server header ourselves to resolve this issue
Thanks

@kum-deepak
Copy link
Member

This is not an error. The value is only used in log statements. So, if you are unclear just ignore it.

If you want to resolve it, you will need to update code of your broker to send a server header in the CONNECTED frame. Please see https://stomp.github.io/stomp-specification-1.2.html#CONNECTED_Frame

@NarasimhaMuddunri
Copy link

NarasimhaMuddunri commented Jun 12, 2019 via email

@tinarooot
Copy link

解决了吗

@BitBard13
Copy link

Hi, sory but i'm using spring boot with websocket and i want to customize the server header, so far i can't find anything that work, so any suggestion ?

@ppdouble
Copy link

ppdouble commented Jul 23, 2022

Thanks for the quick reply, Issue got resolved,

On Wed, Jun 12, 2019 at 2:45 PM Deepak Kumar @.***> wrote: This is not an error. The value is only used in log statements. So, if you are unclear just ignore it. If you want to resolve it, you will need to update code of your broker to send a server header in the CONNECTED frame. Please see https://stomp.github.io/stomp-specification-1.2.html#CONNECTED_Frame — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#4?email_source=notifications&email_token=ALKM4I4GRU3Z5DAWANVTCKDP2C5CPA5CNFSM4FRE5I62YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXPYZMI#issuecomment-501189809>, or mute the thread https://github.com/notifications/unsubscribe-auth/ALKM4I74EXABQA4IRUFRTD3P2C5CPANCNFSM4FRE5I6Q .

Can you share your header? @NarasimhaMuddunri

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants