Use EchoNativeNetworkService for packet registration and delivery.
Packet IDs must be namespaced:
exampleaddon:sync_machine
Register packets before sending or broadcasting them. Hosts should reject duplicate packet IDs.
registerPacketdeclares packet schema and handler ownership.sendToPlayersends a packet to one player or connection target.broadcastsends a packet to a runtime-defined audience.
Use receipt evidence for schema version, payload type, direction, channel, and compatibility notes. Do not put opaque live payloads into receipt evidence.