godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.11k stars 21.18k forks source link

[4.4 dev 4] WebsocketPeer regression: connections from HTML5 stay "connecting" #99028

Open krshock opened 3 days ago

krshock commented 3 days ago

Tested versions

System information

Linux Mint 22. Firefox and Google Chromium

Issue description

HTML5/WebsocketPeer regression:

Steps to reproduce

Console Output from HTML5 4.4-dev3 or Editor 4.4-dev4 ===

#WebsocketPeer regression TEST_1
#NEW_SOCKET_STATE: Connecting
#NEW_SOCKET_STATE: Connected
#NEW_SOCKET_STATE: Clossing
#NEW_SOCKET_STATE: Closed
#WebsocketPeer regression TEST_2
#NEW_SOCKET_STATE: Connecting
#NEW_SOCKET_STATE: Connected
#NEW_SOCKET_STATE: Closed
#WebsocketPeer regression TEST_END

Console Output from HTML5 4.4dev4

#WebsocketPeer regression TEST_1
#NEW_SOCKET_STATE: Connecting
#NEW_SOCKET_STATE: Clossing
#WebsocketPeer regression TEST_2
#NEW_SOCKET_STATE: Connecting
#NEW_SOCKET_STATE: Clossing
#WebsocketPeer regression TEST_END

Minimal reproduction project (MRP)

websocketpeerdev4bug.zip

Swarkin commented 3 days ago

I have just finished a small html5 game using Websockets in 4.4.dev4 and was able to connect to a windows and linux server without issues.

krshock commented 3 days ago

The problems is happening when I connect to a Golang websocket server using the Melody framework, are you connecting to a godot websocket server?