Pawl: Can't seem to connect to any websocket server

Hey there, using latest version (v0.2.2) and can’t seem to connect to any websocket server at all.

Tried using echo.socketo.me:9000 and echo.websocket.org (using the first example on the README.md of this repo).

Most of the times I’ve tried I’ve just got no output from the console although twice I did get this outputting on the console:

Could not connect: HTTP/1.1 200 OK
Date: Fri, 12 Aug 2016 20:04:59 GMT
Server: Apache
Last-Modified: Mon, 19 Oct 2015 15:08:14 GMT
ETag: "222-dbe-5227683b37091"
Accept-Ranges: bytes
Content-Length: 3518
Connection: close
Content-Type: text/html; charset=UTF-8

(Pretty sure that the server I connected with when that outputted does not run Apache at all which is confusing)

I’ve tried on another computer, using a different Internet connection and didn’t work. Although I can connect to them using my browser’s built-in client and also Python so I am sure the issue is with Pawl.

Using PHP7 - can provide extra info if required.

Thanks.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (6 by maintainers)

Most upvoted comments

Hey there, I found out that there was a function that was hanging in the then() closure. I’ve removed that and now Pawl is working fine.

Although I don’t understand why it hangs in the test setup that I did, which doesn’t have any functions in the closure.

Anyway, my issue is resolved with the main code. Thanks guys.