Socket.io ssl error console

Hello guys, I have a problem when I convert my website to ssl security (https), while it is without ssl, (http) socket.io works normally, but from the moment I add ssl it gives me this error in the console from the browser

Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR
https://mydomain.com:9000/socket.io/?EIO=4&transport=polling&t=OkqNBj2:1

Please if you can give me a possible correction scheme

OBS: (http)://mydomain.com —> OK
(https)://mydomain.com —> Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR

Yeah i have this simillar problem. Anyone can help us?