starting poc for the peerjs stuff and slowly getting it but too complicated right now

This commit is contained in:
talksik
2022-05-03 10:01:14 -05:00
parent f19d36bb6f
commit a39eec7dad
8 changed files with 231 additions and 8 deletions
+7
View File
@@ -5,6 +5,13 @@ enum SocketChannels {
SEND_STARTED_SPEAKING = "SEND_STARTED_SPEAKING",
SEND_STOPPED_SPEAKING = "SEND_STOPPED_SPEAKING",
JOIN_LIVE_ROOM = "JOIN_LIVE_ROOM",
GET_ALL_ACTIVE_SOCKET_IDS = "GET_ALL_ACTIVE_SOCKET_IDS",
SEND_SIGNAL = "SEND_SIGNAL",
RECEIVE_SIGNAL = "RECEIVE_SIGNAL",
}
export default SocketChannels;
@@ -0,0 +1,3 @@
export default interface GetAllSocketClients {
socketIds: string[];
}
+7
View File
@@ -0,0 +1,7 @@
export default interface ReceiveSignal {
simplePeerSignal: any;
senderUserSocketId: string;
isGoingBackToInitiator?: boolean;
}
+7
View File
@@ -0,0 +1,7 @@
export default interface SendSignal {
userSocketIdToSignal: string;
simplePeerSignal: any;
isAnswerer?: boolean;
}