One Hat Cyber Team
Your IP :
10.30.1.1
Server IP :
103.148.201.5
Server :
Linux web-olt 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Server Software :
Apache/2.4.52 (Ubuntu)
PHP Version :
8.1.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
doc
/
node-ws
/
examples
/
server-stats
/
View File Name :
index.js
'use strict'; const express = require('express'); const path = require('path'); const { createServer } = require('http'); const WebSocket = require('../../'); const app = express(); app.use(express.static(path.join(__dirname, '/public'))); const server = createServer(app); const wss = new WebSocket.Server({ server }); wss.on('connection', function (ws) { const id = setInterval(function () { ws.send(JSON.stringify(process.memoryUsage()), function () { // // Ignore errors. // }); }, 100); console.log('started client interval'); ws.on('close', function () { console.log('stopping client interval'); clearInterval(id); }); }); server.listen(8080, function () { console.log('Listening on http://localhost:8080'); });