[Solved] Connection on html5 export #41
-
getting some errors on export about 'get_status() on nil' looks like it is related to StreemPeer not accessible on html5 export awesome plugin, many thanks 👍 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Unfortunately there is no way to use TCP on the web browser. This is an independent limitation of Godot for security reasons. The only protocols available on browser are http, websocket (with or without ssl/tls layer) and others based on WebRTC theology. The Postgres client-server protocol is itself based on TCP and there is no version based on http for example. Postgres will not work on platforms where the TCP protocol is not exposed. So I can't do anything about it 😩. In general, it is not up to the players to connect to the postgres server but to the game server to execute the requests instead of the players (for security and performance reasons). Because there is a connection limit to the postgres server and even if you can increase the limit it is bad practice unless you know what you are doing. If you have other questions, do not hesitate ! Thank you and happy coding! Marzin Samuel. |
Beta Was this translation helpful? Give feedback.
Unfortunately there is no way to use TCP on the web browser. This is an independent limitation of Godot for security reasons. The only protocols available on browser are http, websocket (with or without ssl/tls layer) and others based on WebRTC theology. The Postgres client-server protocol is itself based on TCP and there is no version based on http for example. Postgres will not work on platforms where the TCP protocol is not exposed. So I can't do anything about it 😩.
In general, it is not up to the players to connect to the postgres server but to the game server to execute the requests instead of the players (for security and performance reasons). Because there is a connection limit to…