finally working with wss

This commit is contained in:
Sewmina 2025-04-29 16:18:32 +00:00
parent 1fe15f9261
commit 6b709712da
2 changed files with 16 additions and 0 deletions

BIN
wall_smash/cert.pfx Executable file → Normal file

Binary file not shown.

16
wall_smash/pfxTest.js Normal file
View File

@ -0,0 +1,16 @@
const https = require('https');
const fs = require('fs');
const port = 8000;
console.log("Listening on " + port);
const options = {
pfx: fs.readFileSync('cert.pfx')
};
https.createServer(options, (req, res) => {
console.log("Request from " + (req.socket ? req.socket.remoteAddress : "NULL"));
res.writeHead(200);
res.end('hello world\n');
}).listen(port);