View Source Surrealix.RescueProcess (surrealix v0.1.8)

This module is responsible to execute callbacks for on_auth hooks, that happen after a connection is established. This can not be done direcly in the handle_connect callback, since then it blocks the execution of the WebSockex process.

To workaround this issue, we delegate this responsibility to a RescueProcess, that executes those callbacks out-of-band. Also we need to use GenServer.cast, so that the Socket can properly continue and not be deadlocked.

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.