Difference between ws and wss?
What is the procedure to change ws into wss? Whether wss is make upgrade over normal HTTP or wss works only HTTPS? webSocket = new WebSocket("ws://localhost:port/Esv/ocp"); works fine, when I changed ws to wss webSocket = new WebSocket("wss://localhost:port/Esv/ocp"); it shows this error: Error in connection establishment: net::ERR_SSL_PROTOCOL_ERROR Short version To SSL or not SSL You may have a SSL certificate issue . The connection point rule can be summarized as : wss connects on https only ws connects on http and vice-versa: https accepts wss only http accepts ws only Errors Following