My repl is using 4 gigabytes of ram and I am not sure why. Here is the entire script for the server side currently:
const express = require('express');
const app = express();
const http = require('http');
const server = http.createServer(app);
const { Server } = require("socket.io");
const io = new Server(server);
//send over files
app.get('/', (req, res) => {
res.sendFile(__dirname + '/client/index.html');
});
app.use('/client', express.static(__dirname + '/client'));
server.listen(3000, () => {
console.log('listening on *:3000');
});
Even when I stop the repl the ram usage still increases. Is there a fix for this?