0

I am trying to connect to server for web socket connection. but I am getting the error:

"Websocket is disconnected: Optional(Starscream.WSError(type: Starscream.ErrorType.writeTimeoutError, message: \"Timed out waiting for the socket to be ready for a write\", code: 0))"

Starscream.WSError(type: Starscream.ErrorType.writeTimeoutError

How can I solve it? also Here is my source code link: https://www.dropbox.com/s/v348vxxjf74dsds/websocket.zip?dl=0

I tried to connect after some time again too, Once its failed but still it's giving me same error.

Cœur
  • 37,241
  • 25
  • 195
  • 267
Jignesh Kanani
  • 223
  • 1
  • 4
  • 18

1 Answers1

0

I tried your code, it's working fine. the only change I have made is your socket server URL

before it was ws://192.168.1.2:8080

and I have updated with "http://192.168.1.41:8080" //41 is my IP. you can use yours

just changed ws with http.

Akash Soni
  • 535
  • 2
  • 16