This commit is contained in:
Chayapak 2023-09-16 18:02:53 +07:00
parent d9bc349b2c
commit 016c1be6d0

View file

@ -75,7 +75,7 @@ io.on('connection', (socket) => {
socket.on('runCode', async (transactionId, code) => { socket.on('runCode', async (transactionId, code) => {
try { try {
const output = await context.eval(code, { timeout: 3000 }) const output = await context.eval(code, { timeout: 1000 })
socket.emit('codeOutput', transactionId, false, util.inspect(output, { stylize })) socket.emit('codeOutput', transactionId, false, util.inspect(output, { stylize }))
} catch (e) { } catch (e) {