Get to the point of connecting publisher PC and using it for async signalling (#3822)

* starting signalling DC work

* WIP

* plumbing data channel

* add datachannel message sink file

* mage generate

* clean up
This commit is contained in:
Raja Subramanian
2025-08-01 18:50:28 +05:30
committed by GitHub
parent 5e483e7554
commit db4bc127e8
14 changed files with 359 additions and 60 deletions
+1 -1
View File
@@ -945,7 +945,7 @@ func (r *RoomManager) rtcSessionWorker(room *rtc.Room, participant types.LocalPa
return
}
if err := participant.HandleSignalRequest(obj); err != nil {
if err := participant.HandleSignalMessage(obj); err != nil {
// more specific errors are already logged
// treat errors returned as fatal
return
+1 -1
View File
@@ -207,7 +207,7 @@ func (s signalv2ParticipantService) RelaySignalv2Participant(ctx context.Context
return nil, ErrParticipantNotFound
}
err := lp.HandleSignalRequest(req.WireMessage)
err := lp.HandleSignalMessage(req.WireMessage)
if err != nil {
return nil, err
}
+8 -1
View File
@@ -223,6 +223,13 @@ func (s *RTCv2Service) handleParticipantPatch(w http.ResponseWriter, r *http.Req
HandleErrorJson(w, r, http.StatusBadRequest, fmt.Errorf("could not get wire message: %w", err))
return
}
logger.Debugw(
"participant request",
"room", roomName,
"participant", participantIdentity,
"pID", pID,
"participantRequest", logger.Proto(wireMessage),
)
res, err := s.signalv2ParticipantClient.RelaySignalv2Participant(
r.Context(),
@@ -257,7 +264,7 @@ func (s *RTCv2Service) handleParticipantPatch(w http.ResponseWriter, r *http.Req
"room", roomName,
"participant", participantIdentity,
"pID", pID,
"participantResponse", logger.Proto(res),
"participantResponse", logger.Proto(res.WireMessage),
)
marshalled, err := proto.Marshal(res.WireMessage)