NodeRED on SSL https://

While using NodeRed at https:// nodered.example. com URL using Apache Reverse proxy, on Inspecting the page, the following websocket error is obtained.

WebSocket connection to 'wss://nodered.example. com/comms' failed: Error during WebSocket handshake: Unexpected response code: 404

Does using https always defaults to using wss i.e. secure websockets. Is there any way in which i can still use ws:// ?

Have been cracking my head over this for quite a few days now.. Not getting any significant help on enabling websockets over Apache reverse proxy..

Btw, i have not done any changes in the settings.js file to use https, i am still using http itself.