Cobra Packets

Cobra Packets simplifies multiplayer networking in Unity, allowing you to send and receive packets with minimal code.


Requires: Mirror or FishNet, and Cobra Logging. Please import these package before you import Cobra Packets to avoid errors.


Key Features:

  • Clean Code: Easily send and receive data without creating separate classes or structs for each message type.
  • Response Handling: Send packets and wait for responses in the same block of code.
  • Global Packets: Broadcast packets to all connected players.
  • Targeted Packets: Send packets to specific players.
  • Cached Packets: Automatically send packets to late-joiners who join after the packet was sent.
  • Async Support: Send messages and receive responses in one call, like a simple method call.
  • Synchronous Support: Use synchronous handlers if preferred, instead of async calls.
  • Mirror & FishNet Support: Compatible with both Mirror and FishNet networking solutions.