Failure Callbacks

Due to the time required to send packets over a network, Strix relies on callbacks to return results to users.

Most network functions have two types of callbacks: a success and a failure. Failure callbacks contain information about the failure that occurred through a Strix Error Category enum and an error code. See Error Codes for a comprehensive list.

Failure callbacks are not always an error. For example, in the Channels sample, the Join Random Node Room function is called, and if it fails, it calls the Create Node Room function as the failure simply means no rooms are available.