Wss on HTTPS

I am attempting to establish a WebSocket Secure (WSS) connection on port 8084 within an HTTPS web application. To achieve this, I have updated the certificate (cert), key, and cacert files specifically for WSS. These files are identical to the ones I am using for HTTPS. When using a Node.js code, I successfully accessed WSS without any problems. The only obstacle I encountered is related to HTTPS website