DEV Community

Discussion on: Video Chatting and Screen Sharing with React, Node, WebRTC(peerjs)

Collapse
 
arjhun777 profile image
Arjhun777 • Edited

connection class is used in step-7, by calling createSocketConnectionInstance() - also this just rough code with all functionalities to create video and screen sharing application

Collapse
 
deepaksai1919 profile image
Deepaksai1919

new SocketConnection(settings) is used in the code instead of new Connection(settings) in createSocketConnectionInstance()

Collapse
 
xandris profile image
Alexandra Parker

The code as written says this:

export function createSocketConnectionInstance(settings={}) {
    return socketInstance = new SocketConnection(settings);
}
Enter fullscreen mode Exit fullscreen mode

Should that be new Connection(settings) instead?

Thread Thread
 
arjhun777 profile image
Arjhun777

yes