I have web socket on php. And i run it successfully. And I also connect to this websocket successfully on http protocol (i use ws://[ip]:[port]). When i attempt to connect to this websocket over https then i get an error on client side (I also use wss:// but it didn't help me).
error: fancywebsocket.js:14 Uncaught DOMException: Failed to execute 'send' on 'WebSocket': Still in CONNECTING state. at FancyWebSocket.send (https://[mydomain]/ws/fancywebsocket.js:14:13) at https://[mydoamin]/:470:24