http icon indicating copy to clipboard operation
http copied to clipboard

not able to connect to Stomp server

Open parthdave93 opened this issue 5 years ago • 2 comments

I'm not sure but when I checked the lib it first calls get request on websocket host address and awaits for 101 switch protocol. In my case even in postman it's not giving 101 but for some strange reason on java end it gives 101 and able to connect from Java lib. Can you look into it? or give me some idea why and what might be the issue I will create pull request after testing the code.

parthdave93 avatar Mar 29 '20 19:03 parthdave93

Have you tried with WebSocket from dart:io?

What errors do you see?

natebosch avatar Jun 16 '20 22:06 natebosch

The socket we used has been using Stomp 1.0 and 1.1 while Websocket from dart:io uses 1.2 so not able to connect to the server. also, there's another thing in lib that I am not able to figure out was the cookies. I was not able to find, function to add headers to the request when we request for handshake/101 switch protocol. Although this lib says we just support 1.2 and above so I find it irrelevant from my end to open the issue but was hoping that we can get some solution to support old socket protocol. If you want we can close this issue for now.

parthdave93 avatar Jul 01 '20 19:07 parthdave93