Ask coding questions

← Back to all posts
replit secure ws://
ikpar3

I have an insecure (http) server, and an insecure (ws) websocket server. Upon run, replit converts the insecure http server to https, but not the attached websocket server to wss. As a result, the page is blocked from accessing the insecure websocket. Aparrently, If the server I create is https, the websocket will become secure. But how would I make the https server, instead of http if replit just forwards the http server to https! I am using express, and made the server with server = http.createServer(app), but how would I make server https? (I need the credentials or something)

Voters
ikpar3