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

Open Error #670

Open
mazhar27 opened this issue Oct 30, 2023 · 3 comments
Open

Open Error #670

mazhar27 opened this issue Oct 30, 2023 · 3 comments

Comments

@mazhar27
Copy link

Hello, I am facing this weird issue when I connect web sockets it got connected and I start receiving messages also I got this webSocketDidOpen callback but when I send message I got this error
Error Domain=SRWebSocketErrorDomain Code=2134 "Invalid State: Cannot call sendString:error: until connection is open." UserInfo={NSLocalizedDescription=Invalid State: Cannot call sendString:error: until connection is open.}
getting this error while se sending data
I checked everything my socket is always in connecting state and I am able to receive messages but not able to send

@DaverZhou
Copy link

how to solve it?

@mazhar27
Copy link
Author

how to solve it?

It was weird as the instance of socket we are getting in webSocketDidOpen callback is open and I just set my instance to that one and its working fine

@sjkummer
Copy link

sjkummer commented Dec 4, 2023

I also saw this in production. But it's not easy to reproduce

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

3 participants