godotengine / godot-demo-projects

Demonstration and Template Projects

Home Page:https://godotengine.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example of "webrtc_signaling" not working on the web

satoshidisciple opened this issue · comments

Which demo project is affected:

OS/device including version:

  • Windows, Mac, Linux
  • Browser: Google Chrome
  • Godot version 4.1

Issue description:

To test, simply configure export for the Web. Run node_server and run the project.

When executed by the editor, everything will work normally,
but if you try to run it in the Browser the connection will not be established.

I investigated the problem and apparently the error is in performing "ws.get_ready_state" before "ws.pool" in the browser;

I created a PR fixing the bug: #982

My fix merge request was accepted, so I think you can now close this issue. Thank you

@satoshidisciple Issues should not be closed until after the PR is merged. Also, you can ensure these things happen at the same time by adding "Fixes #983" in the PR description. I've went ahead and done this for you.