Connection state changed to disconnected a few tens of seconds after connected

Hi,

The client transport connection state goes disconnected a few eights seconds after connection.
The following log will be output in the chrome console.

“mediasoup-client:Transport connection state changed to connected”

However, the following log will be output in the chrome console a few eights seconds later

“mediasoup-client:Transport connection state changed to disconnected”

If the NewProducer is present before the disconnection, the above will not happen.
Do you know the possible causes?

Resolved. I changed the AWS security policy according to the topic below and it worked.

You’ll also need to configure your AWS Security Group to allow TCP/UDP on whatever port range you’re using.

1 Like