adding pretty much full boilerplate for connecting and receiving calls

this is without all of the stream additions though
This commit is contained in:
talksik
2022-06-19 10:04:30 -05:00
parent 226ca56eeb
commit b23db49249
2 changed files with 130 additions and 3 deletions
+2 -2
View File
@@ -130,7 +130,7 @@ export default function InitializeWs(io: any) {
const userSocketId = userIdsToSocketIds[req.userToCall];
io.to(userSocketId).emit(
ServerResponseChannels.RTC_NEW_USER_JOINED,
`${ServerResponseChannels.RTC_NEW_USER_JOINED}:${req.lineId}`,
new RtcNewUserJoinedResponse(userInfo.userId, req.lineId, req.simplePeerSignal),
);
});
@@ -143,7 +143,7 @@ export default function InitializeWs(io: any) {
const userSocketId = userIdsToSocketIds[req.newbieUserId];
io.to(userSocketId).emit(
ServerResponseChannels.RTC_RECEIVING_MASTER_ANSWER,
`${ServerResponseChannels.RTC_RECEIVING_MASTER_ANSWER}:${req.lineId}`,
new RtcReceiveAnswerResponse(userInfo.userId, req.lineId, req.simplePeerSignal),
);
},