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

Socket is not getting connected #30

Closed
ghost opened this issue Oct 10, 2018 · 11 comments
Closed

Socket is not getting connected #30

ghost opened this issue Oct 10, 2018 · 11 comments
Labels

Comments

@ghost
Copy link

ghost commented Oct 10, 2018

i have tried to connect with socket and my delegate is landing to didSendError always with message
Invalid Sec-WebSocket-Accept response.

why example is adding gateway/websocket to url. is it necessary to add it

@WrathChaos
Copy link
Owner

Hello @manusaxena,
It could be necessary depends on your socket server. If it is default, then yes. Also, I need to revise the library with Swift 4.2 and XCode 10. Please try to fix your url, until then give me a week to re-work on the library to re-code on Swift 4.2

Please give me a feedback, if you have done :)

@ghost
Copy link
Author

ghost commented Oct 10, 2018

i have changed my url now. but still having "Invalid Sec-WebSocket-Accept response." please suggest any pointers

@WrathChaos
Copy link
Owner

Can you share your url? So I can try either

@ghost
Copy link
Author

ghost commented Oct 10, 2018

i have created javascript client with same stomp protocol and it is working. please visit this link as well .

@WrathChaos
Copy link
Owner

WrathChaos commented Oct 10, 2018

Can you try this url: ws://205.147.102.113/bitbuddy/bitbuddyLead/gateway/websocket

@ghost
Copy link
Author

ghost commented Oct 10, 2018

Above is not working because backend end point is not available for this url.
Code=2132 "received bad response code from server 404". if possible can we have quick session over skype(me.manusaxena)

@WrathChaos
Copy link
Owner

I'm on work right now, when I go home I'm going to try your url very fast

@ghost
Copy link
Author

ghost commented Oct 10, 2018

thanks for very prompt replies. appreciate it

@ghost
Copy link
Author

ghost commented Oct 11, 2018

i got to get resolve. Backend is based on sockJs protocal, so i need to add couple of url params.

@cleverClosure
Copy link

@manusaxena Hi, can you provide params you've added? I'm having same issue

@said13
Copy link

said13 commented May 17, 2019

@cleverClosure Hi. Have you solved this problem?

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

No branches or pull requests

3 participants