webrtc_signal

Server-side WebRTC signaling over Phoenix Channels.

Channel topic: webrtc:signal

Events:

SetID returns:

Handshake returns:

Integrate into a Phoenix app

In your Endpoint (e.g. lib/my_app_web/endpoint.ex), add:

socket "/webrtc_socket", WebrtcSignal.Socket,
  websocket: true,
  longpoll: false

Then your client connects to:

ws://HOST/webrtc_socket
wss://HOST/webrtc_socket

When you run multiple BEAM nodes, make sure they are connected via distributed Erlang so :global can see registrations across the cluster.