getting calling system all good I thinki

This commit is contained in:
talksik
2022-05-14 11:58:24 -05:00
parent 8b7b07479e
commit 9a1207a939
3 changed files with 100 additions and 11 deletions
+2 -2
View File
@@ -158,7 +158,7 @@ export default function InitializeWs(io: any) {
const userSocketId = userIdsToSocketIds[req.userIdToCall];
io.to(userSocketId).emit(
`${ServerResponseChannels.RTC_NEW_USER_JOINED_RESPONSE_PREFIX}:${req.lineId}`,
ServerResponseChannels.RTC_NEW_USER_JOINED_RESPONSE,
new RtcNewUserResponse(userInfo.userId, req.simplePeerSignal),
);
});
@@ -167,7 +167,7 @@ export default function InitializeWs(io: any) {
const userSocketId = userIdsToSocketIds[req.userIdToCall];
io.to(userSocketId).emit(
`${ServerResponseChannels.RTC_RECEIVING_ANSWER_RESPONSE_PREFIX}:${req.lineId}`,
ServerResponseChannels.RTC_RECEIVING_ANSWER_RESPONSE,
new RtcReceiveAnswerResponse(userInfo.userId, req.simplePeerSignal),
);
});