starting poc for the peerjs stuff and slowly getting it but too complicated right now
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export default interface ReceiveSignal {
|
||||
simplePeerSignal: any;
|
||||
|
||||
senderUserSocketId: string;
|
||||
|
||||
isGoingBackToInitiator?: boolean;
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
export default interface SendSignal {
|
||||
userSocketIdToSignal: string;
|
||||
|
||||
simplePeerSignal: any;
|
||||
|
||||
isAnswerer?: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user