var fs = require('fs');
const serverOptions = {
key: fs.readFileSync('my_key.key'),
cert: fs.readFileSync('my_cert.crt')
}
var https = require('https');
const server = https.createServer(app,serverOptions);
server.listen(3000);
const ws = new WebSocket.Server({server});