Closed joemicmc closed 2 years ago
Does the itch app browser support websockets?
I had a doubt (since v25 upgraded several electron versions, and serves web games over another protocol, and ships with with a CSP, and...), but yes, it does!
See https://fasterthanlime.itch.io/ws-test
It looks like airconsole is doing a lot of stuff behind the scenes, one of them seems to break it.
(Note: that error message in particular is shown when client code calls socket.close()
too early, so something's definitely going on).
Thanks for quick reply. I raised an issue with AirConsole: https://github.com/AirConsole/airconsole-api/issues/53
As a workaround I'm displaying a splash screen of sorts if launched from the app:
I replied over there too!
Looks like they closed related issue:
itch-cave://
is a problem. We require everything to be served over https or http.
Not sure what that means for this issue though!
itch-cave://
is a problem. We require everything to be served over https or http.
This issue looks like a dead-end then :(
There's no good alternatives for us:
Having a custom protocol is the only way for us to support various HTML5 game flavors out there. I'm curious why the AirConsole feels they have to restrict their games to http and https only (I'm not convinced yet that it's related to the actual error).
I replied again over there.
Details
Description
When the game is launched, websocket connections are closed:
WebSocket connection to 'wss://server-url' failed: WebSocket is closed before the connection is established.
The game uses websockets to send messages from the screen to your smart phone.
If I load the game with my browser of choice, then everything is fine and dandy:
Does the itch app browser support websockets?