💬

Community answer

Collected from the ACE community Discord archive around 2021-10-27. It may be informal or outdated — anyone can edit this page to improve it. Original discussion

net.writeData and net.writeStream ordering

🌙 LuaUpdated 2 days ago•0 views
Order matters - writeStream consumes the rest of the buffer, so write your data BEFORE the stream; swapping the order lets the stream read but breaks the data.

Why can't I write both data and a stream in one net message

Order matters - writeStream consumes the rest of the buffer, so write your data BEFORE the stream; swapping the order lets the stream read but breaks the data.

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.