You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
I was unable to find a work around to make my ws into wss on Nextjs. As on Express I can
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?
The text was updated successfully, but these errors were encountered: