Sets the interval between pings. ENet will automatically send pings when it hasn't received anything from the remote computer.
Exception Type | Condition |
---|---|
ArgumentOutOfRangeException | interval is negative. |
InvalidOperationException | The peer is not initialized. |
NotSupportedException | This method requires ENet 1.3.4 or newer. |