Summary

Functions

Returns a specification to start this module under a supervisor.

Closes the WebRtcServer.

Tells whether the given WebRtcServer is closed on the local node.

Dump internal stat for WebRtcServer.

WebRtcTransport identifier.

Types

@type create_option() :: map() | Mediasoup.WebRtcServer.Options.t()
@type t() :: %Mediasoup.WebRtcServer{id: String.t(), pid: pid()}
Link to this type

webrtc_server_listen_info()

View Source
@type webrtc_server_listen_info() :: %{
  :protocol => :udp | :tcp,
  :ip => String.t(),
  optional(:announcedAddress) => String.t() | nil,
  port: integer() | nil
}

Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

@spec close(t()) :: :ok

Closes the WebRtcServer.

@spec closed?(t()) :: boolean()

Tells whether the given WebRtcServer is closed on the local node.

@spec dump(t()) :: any() | {:error, :terminated}

Dump internal stat for WebRtcServer.

WebRtcTransport identifier.

@spec struct_from_pid(pid()) :: t()
Link to this function

struct_from_pid_and_ref(pid, reference)

View Source