function connectToNewUser(userId, stream) {
	const call = myPeer.call(userId, stream);
	const video = document.createElement("video");
	video.setAttribute('id', userId);

	//respond to their stream
	call.on("stream", (userVideoStream) => {
		addVideoStream(video, userVideoStream, peers[userId]);
	});
}
//connect to a new user given their user id and video stream from the call
connect to a new user given their user id and video stream from the call
connect to a new user given their user id and video stream from the call
function connectToNewUser(userId, stream) {
	const call = myPeer.call(userId, stream);
	const video = document.createElement("video");
	video.setAttribute('id', userId);
	call.on("stream", (userVideoStream) => {
		addVideoStream(video, userVideoStream, peers[userId]);
	});
}
function connectToNewUser ( userId , stream ) { const call = myPeer . call ( userId , stream ) ; const video = document . createElement ( "video" ) ; video . setAttribute ( 'id' , userId ) ; call . on ( "stream" , ( userVideoStream ) => { addVideoStream ( video , userVideoStream , peers [ userId ] ) ; } ) ; }
connect to a new user given their user id and video stream from the call
connect to a new user given their user id and video stream from the call
//respond to their stream