lidgren / lidgren-network-gen3

Lidgren Network Library
https://groups.google.com/forum/#!forum/lidgren-network-gen3
MIT License
1.19k stars 331 forks source link

Lidgren.Network.NetException: This message has already been sent! #159

Open Rombersoft opened 3 months ago

Rombersoft commented 3 months ago

Hi community! How can I send the same message many times for the same NetClient without that Exception?

PJB3005 commented 3 months ago

Sadly it's not possible to re-use messages with how the library works internally. Re-using the contents themselves is doable though as you can access them with Data, copy them somewhere else, then copy that every time you try to re-send a message.