Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Connection but no communication with websocket and exposing/sharing with ngrok #33

Open
NathanHaley opened this issue Oct 11, 2018 · 0 comments

Comments

@NathanHaley
Copy link

Basically I need to provide public access to Laravel restful api's and a websocket to a couple third parties for services.

If I hit the socket locally, site.test:8000, works fine and get 2-way communication. But when using ngrok to make public it will connect and I can log that the open method of my socket handler is hit but never hits the message method and connection closes after few seconds.

No errors in site log, php, nginx or ngrok console which just shows: GET /mysocket 101 Switching Protocols. Is there somewhere else I can look?

I have also tried spinning the websocket off into it's own vagrant box and using ' ngrok http -host-header=rewrite site.test:8000' to route all traffic to the service and bypass nginx proxy but works the same - can connect but no communication and fails shortly.

Hoping if anyone here has experience with this senario and can point me in the right direction.

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant