Answer the question
In order to leave comments, you need to log in
Why is it not connecting to wss?
nginx
server {
charset utf-8;
client_max_body_size 128M;
listen 80;
listen 443 default ssl;
ssl_certificate /etc/nginx/ssl/cert.pem;
ssl_certificate_key /etc/nginx/ssl/cert.key;
server_name url;
const https = require('https'),
fs = require('fs'),
WebSocket = require('ws'),
server = https.createServer({
ssl: true,
cert: fs.readFileSync('/etc/nginx/ssl/cert.pem'),
key: fs.readFileSync('/etc/nginx/ssl/cert.key'),
port: 2052,
}),
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question