Added cold-persistance to Channel Chat Buffer via periodic DB saves based on chat activity.
This commit is contained in:
parent
366df357b8
commit
c64b315fdf
7 changed files with 124 additions and 5 deletions
|
|
@ -16,6 +16,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.*/
|
|||
|
||||
//local imports
|
||||
const connectedUser = require('./connectedUser');
|
||||
const chatBuffer = require('./chatBuffer');
|
||||
const queue = require('./media/queue');
|
||||
const channelModel = require('../../schemas/channel/channelSchema');
|
||||
const playlistHandler = require('./media/playlistHandler')
|
||||
|
|
@ -30,7 +31,7 @@ module.exports = class{
|
|||
this.queue = new queue(server, chanDB, this);
|
||||
this.playlistHandler = new playlistHandler(server, chanDB, this);
|
||||
//Define the chat buffer
|
||||
this.chatBuffer = [];
|
||||
this.chatBuffer = new chatBuffer(server, chanDB, this);
|
||||
}
|
||||
|
||||
async handleConnection(userDB, chanDB, socket){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue