0

I've spend a few hours reading about WebRTC and everywhere it's recommended to use a secure connection for contacting with the signal server, so no MitM attacks could be possible.

However, my project is aimed at video streaming (public), so I really don't care (I think) if someone is eavesdropping the connection to the signal server because it's only information about an already public resource. So... why would I need to use WSS instead of WS? Is there any other attack I may face if I'm not using WSS?

The Illusive Man
  • 10,487
  • 16
  • 56
  • 88

2 Answers2

1

During the session initiation, through the signaling channel, the peers (two or more) are sharing information about their environment in order to create the stream.

You expose not only yourself (aka your application), but also your users by not using a secure connection.

Adrian Ber
  • 121
  • 3
0

If you do use ws instead of wss it means your users are on an http webpage and not an https one.

You should use https for webpage to protect your users, thus, you have to use wss (because for obvious security reason, ws is not allowed in https webpage).

Tom
  • 2,063
  • 12
  • 19