Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

[Solved] Connection on html5 export #41

Answered by Marzin-bot
ddragon15 asked this question in Q&A
Discussion options

You must be logged in to vote

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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Marzin-bot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants