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
[ ] Regression
[ ] Bug report
[ ] Feature request
[x] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
I'm using NestJS for a project we're launching, and I've recently introduced a WebSocket Gateway for a functionality of the project. Everything works as expected, but in "production", I'm running the app as an HTTPS server. It seems that the websocket isn't working with the "wss" protocol. I'm not entirely sure if it's an issue with my code or the websocket gateway and I couldn't find any HTTPS examples around the documentation.
The socket seems to work, but the response I'm getting back when trying to connect says the response is insecure. (See below).
Failed: Error in connection establishment: net::ERR_INSECURE_RESPONSE
Thanks.
Environment
Nest version: 4.5.9
The code that is relevant to the scenario I'm describing:
import * as https from 'https';
const app = NestFactory.create(ApplicationModule, expressInstance);
app.then(instance => {
instance.init();
const httpsInstance = https.createServer(options, expressInstance).listen(process.env.PORT);
});
The text was updated successfully, but these errors were encountered:
I'm submitting a...
Current behavior
I'm using NestJS for a project we're launching, and I've recently introduced a WebSocket Gateway for a functionality of the project. Everything works as expected, but in "production", I'm running the app as an HTTPS server. It seems that the websocket isn't working with the "wss" protocol. I'm not entirely sure if it's an issue with my code or the websocket gateway and I couldn't find any HTTPS examples around the documentation.
The socket seems to work, but the response I'm getting back when trying to connect says the response is insecure. (See below).
Thanks.
Environment
The text was updated successfully, but these errors were encountered: