-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Description
I was unable to find a work around to make my ws into wss on Nextjs. As on Express I can
const server = https.createServer({
cert: fs.readFileSync('/www/wwwroot/domain/cert/cert.pem'),
key: fs.readFileSync('/www/wwwroot/domain/cert/key.pem')
});
const wss = new Websocket.Server({ server })
server.listen(8082)
I do not know how to integrate the pem certificates in Nextjs.
ws works fine with nextjs but I am not sure how I can introduce the ssl to work with ws with nextjs.
Can you give me some direction to use wss intead of ws?
Metadata
Metadata
Assignees
Labels
No labels