It's been an obnoxious feature that Send throws when not connection. In my experience, the common pattern is just to silently ignore throws from send. But occasionally, senders will want to clean up connection state or similar, so I gave Send a return type.
While doing this, I pushed ILogger into the UnityListener and Connection classes and deleted SendBytes which really no one should be using since it's less efficient than Send.
It's been an obnoxious feature that Send throws when not connection. In my experience, the common pattern is just to silently ignore throws from send. But occasionally, senders will want to clean up connection state or similar, so I gave Send a return type.
While doing this, I pushed ILogger into the UnityListener and Connection classes and deleted SendBytes which really no one should be using since it's less efficient than Send.