add console in socket server
This commit is contained in:
parent
36c0104888
commit
1171a3c076
1 changed files with 1 additions and 0 deletions
|
|
@ -191,6 +191,7 @@ async function onUpdateEvent(socket, ...args) {
|
|||
|
||||
async function onWebrtcAgentHandler(socket, ...args) {
|
||||
if (socket.handshake.query.identity === IDENTITIES.agent) {
|
||||
console.log('WEBRTC_CALL_DATA', args[0]);
|
||||
const agentIdToConnect = args[2]?.toAgentId;
|
||||
logger.debug(`${socket.id} sent webrtc event to agent:${agentIdToConnect}`);
|
||||
if (agentIdToConnect && socket.handshake.sessionData.AGENTS_CONNECTED.includes(agentIdToConnect)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue