View Source Membrane.ICE.TURNCleaner (Membrane Template plugin v0.12.1)

Integrated TURN cleaner.

It monitors given process and when it exits, stops Integrated TURN.

Link to this section Summary

Functions

Spawns a new TURN cleaner and links it to calling process.

Spawns a new TURN cleaner under supervisor supervisor.

Link to this section Functions

@spec start_link(pid(), map()) :: {:ok, pid()}

Spawns a new TURN cleaner and links it to calling process.

pid is a pid of a process to monitor and turn is an TURN server to terminate when process with pid pid exits.

Link to this function

start_under(supervisor, pid, turn)

View Source

Spawns a new TURN cleaner under supervisor supervisor.

pid and turn have the same meaning as in start_link/2.