This commit is contained in:
2024-01-05 22:06:34 -05:00
parent c8f00cdeaf
commit abc547c642
34 changed files with 6586 additions and 1561 deletions

15
controller/torrent.js Normal file
View File

@ -0,0 +1,15 @@
'use strict';
const ps = require('./pubsub.js');
const {Torrent} = require('>/models');
console.log('here!!!!!!!!!!!!!')
setInterval(async function(){
ps.publish('torrent:server:status', await Torrent.trClient.sessionStats())
}, 3000);
// ps.subscribe(/./g, function(...args){
// console.log('event', args);
// });