Does StreamPeerTCP guarantee received packet is same from server?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rico345100

I’m making simple Godot project that works with Node.js server. To receive and send packet to Node.js server, I used StreamPeerTCP.

First seems works, but after 2nd transmission from server, extract data from packet were broken and mess all other logics.

This wasn’t happened when same logic tested with Unity C#:

Here’s the repo I’m currently developing:

Used Godot 3.1.2 but also works with 3.2.rc6. Tested with Godot 3.1.2 and macOS 10.13.6.