Websocket is under https, is it necessary to use wss protocol to connect?

after using https , the original websocket link of
cannot be used properly.
do I need to use the wss protocol to connect under https?
if yes, what are you asking?


Yes, ws and wss are further improvements and upgrades on http and the corresponding https. WSS is the https protocol first, only adding header and binary packets corresponding to websocket. To put it simply, it is WS on HTTP, WSS on HTTPS

.

another question is whether you can open a wss connection in a http page. Yes, but not secure enough.
can I open a ws connection in https? The answer is no, because the browser does not allow it. However, not all browsers are not allowed, such as domestic browsers such as qq. Of course, it's not safe.)

Menu