var app = require('express')();
var fs = require('fs');
const serverOptions = {
key: fs.readFileSync('my_key.key'),
cert: fs.readFileSync('my_cert.crt')
}
var https = require('https');
var mysql = require('mysql');
var WebSocket = require('ws');
const server = https.createServer(serverOptions,(req,res)=>{
console.log("Connected");
});
const ws = new WebSocket.Server({server});
....
server.listen(3000);