Video-Call-App-NodeJS icon indicating copy to clipboard operation
Video-Call-App-NodeJS copied to clipboard

Error data.room

Open Vitalicus opened this issue 3 years ago • 6 comments

First run is ok. On reload script stop working. (Ubuntu. Chrome)

if ( socket.adapter.rooms[data.room].length > 1 ) {
                                             ^
TypeError: Cannot read properties of undefined (reading 'length')

Vitalicus avatar Feb 23 '22 05:02 Vitalicus

did you fix it???

amirjaufeeraully avatar Mar 02 '22 14:03 amirjaufeeraully

no :(

Vitalicus avatar Mar 02 '22 14:03 Vitalicus

Hello! If you upgraded the version of socket.io you need to replace that line of code

if ( socket.adapter.rooms.has(data.room) === true )

Pull request #68

KFRANCMM avatar Mar 28 '22 20:03 KFRANCMM

Hey, but do you have any idea how to make the application run on private IPs or public IPs? It only runs on Localhost!

amirjaufeeraully avatar Mar 30 '22 13:03 amirjaufeeraully

Hey, but do you have any idea how to make the application run on private IPs or public IPs? It only runs on Localhost!

This is due to a security restriction of the browsers, to access devices such as the camera and microphone. HTTPS and TLS/SSL certificates are required. If you want to run the application on a private IP segment, you could try to use self-signed certificates.

Example self-signed certificates: https://flaviocopes.com/express-https-self-signed-certificate/

KFRANCMM avatar Mar 30 '22 16:03 KFRANCMM

Hey, but do you have any idea how to make the application run on private IPs or public IPs? It only runs on Localhost!

This is due to a security restriction of the browsers, to access devices such as the camera and microphone. HTTPS and TLS/SSL certificates are required. If you want to run the application on a private IP segment, you could try to use self-signed certificates.

Example self-signed certificates: https://flaviocopes.com/express-https-self-signed-certificate/

Hey..could you convert this source to https in app.js?

mohsenkhalafi avatar Nov 23 '22 19:11 mohsenkhalafi