View Source Signaling Protocol
joining-the-server
Joining the server
sequenceDiagram
actor client
participant server
actor other_client
client->>server: join
server->>client: peerAccepted
server->>other_client: peerJoined
adding-a-track
Adding a track
sequenceDiagram
actor client
participant server
actor other_client
client->>server: renegotiateTracks
server->>client: custom(offerData)
client->>server: custom(sdpOffer)
par
client->>server: custom(candidate)
and
server->>client: custom(sdpAnswer)
server->>client: custom(candidate)
server->>other_client: tracksAdded
server->>client: tracksAdded
rect rgb(135, 204, 232)
note right of server: renegotiation
server->>other_client: custom(offerData)
other_client->>server: custom(sdpOffer)
par
other_client->>server: custom(candidate)
and
server->>other_client: custom(sdpAnswer)
server->>other_client: custom(candidate)
end
end
end
leaving-the-server
Leaving the server
sequenceDiagram
actor client
participant server
actor other_client
client->>server: leave
server->>other_client: peerLeft
rect rgb(135, 204, 232)
note right of server: renegotiation
server->>other_client: custom(offerData)
other_client->>server: custom(sdpOffer)
par
other_client->>server: custom(candidate)
and
server->>other_client: custom(sdpAnswer)
server->>other_client: custom(candidate)
end
end