expose icon indicating copy to clipboard operation
expose copied to clipboard

Dashboard Websocket Connection Fails

Open Hornet-Wing opened this issue 4 years ago • 2 comments

I am having issues with the websocket connection on the dashboard which means that new requests don't automatically appear unless I refresh the page.

When I load the Dashboard I get:

GET ws://localhost:4041/socket
[HTTP/1.1 404 Not Found 4ms]

Firefox can’t establish a connection to the server at ws://localhost:4041/socket.
localhost:4041:42:24

I have tried various combinations of OS (Windows and Linux), Browsers (Chrome and Firefox) as well as Expose servers (my own and beyondcode's). I'm out of ideas on how I can debug this issue. Has anyone else come across this?

Thanks!

Hornet-Wing avatar Apr 13 '21 19:04 Hornet-Wing

Yeah this is an issue when sharing multiple sites at the same time. The expose client is currently always sending the realtime data to the first dashboard port (4040) instead of the correct one. Would be cool to see a PR for this 🙂

See: https://github.com/beyondcode/expose/blob/cca03ab8b290d975dd660ea66cf1b6f3b1e04e3e/app/Logger/RequestLogger.php#L75

mpociot avatar Apr 14 '21 06:04 mpociot

Thanks for the reply Marcel.

I havent been able to get even one instance of expose to push the logs. Am I missing some local php module or config?

Hornet-Wing avatar Apr 14 '21 14:04 Hornet-Wing

Hwh3j

ivannggnnavi avatar Nov 13 '22 00:11 ivannggnnavi

Closing this issue because it's old. Please feel free to open a new one if it's still relevant.

sschlein avatar Dec 21 '23 13:12 sschlein