I am developing an cordova application for Android & iOS. In both platforms I am running the web socket servers with the help of libraries (Android, iOS) and loading my site into the cordova app with the url. In javascript am connecting to the native websocket server with ws://localhost<port>
. So for working fine. But when I move my site to production server which is loaded as https
. So websocket communication failed because of ws
tried by giving wss
but no use. :( Please help me to fix this issue.
How can I run the websocket server with wss
in localhost.
Thanks.