ilusm.dev

rtc

WebRTC, peer connections, data channels.

Load with: use rtc

Quick example

use rtc

result = rtcne("value")
prn(result)

Functions

Configuration

rtcne(st)

Creates a new instance. Takes st.

ICE Servers

rtcsu(urls, un, pw)

Performs the operation. Takes urls, un, pw.

rtcsf()

Performs the operation.

Peer Connection

rtcpc(r)

Performs the operation. Takes r.

Data Channel

rtcdc(r, nm, og)

Performs the operation. Takes r, nm, og.

rtcsd(dc, dt)

Performs the operation. Takes dc, dt.

rtccl(dc)

Closes or clears. Takes dc.

Offer/Answer

rtcfr(r)

Creates from another format. Takes r.

rtcns(r, of)

Performs the operation. Takes r, of.

rtccn(r, an)

Performs the operation. Takes r, an.

ICE Candidates

rtcce(r)

Performs the operation. Takes r.

rtccc(r, c)

Performs the operation. Takes r, c.

Media

rtcgm(vd, ad)

Performs the operation. Takes vd, ad.

rtcds(r, st)

Performs the operation. Takes r, st.

Handlers

rtcn0(r, fn)

Performs the operation. Takes r, fn.

rtcnd(r, fn)

Performs the operation. Takes r, fn.

rtcni(r, fn)

Performs the operation. Takes r, fn.

Stats

rtcst(r)

Sets a value or starts a process. Takes r.

Close

rtccl(r)

Closes or clears. Takes r.

Notes

  • WebRTC helpers - peer connection, data channels.