What error message are you getting when attempting to send wss requests?
It’s likely that the browser does not accept wss requests with a self-signed certificate. You can check if your requests start succeeding when adding your own CA to your trusted keystore (here’s an example of how to do that in Chrome).