Godot Version
Godot 4.4 dev7 - mono
Question
I moved the game being developed from 4.3 stable version to 4.4 dev7, but a runtime error occurred. After tracking it down, the problem was that the packet sent from the server was truncated to 1016 bytes. I am embarrassed because this is a problem that was not seen at all in version 4.3. Has the usage of WebSocketPeer changed in some way in 4.4? Even after looking at the document, I couldn’t find any special changes.
if( currentState == WebSocketPeer.State.Open )
{
while( _client.GetAvailablePacketCount() > 0 )
{
OnData();
}
}
Above is all the code for receiving packets. When I try GetPacket() in OnData(), I only get 1016 bytes. The data sent from the server is about 1030 bytes.
At smaller sizes it works just as well as version 4.3.
I’m developing in C#.