Remove unused code

merge-requests/28/head
knotteye 2020-10-17 01:03:20 -05:00
parent bdfac44e21
commit 7806b34cfa
1 changed files with 0 additions and 12 deletions

View File

@ -8,9 +8,6 @@ import * as strf from "strftime";
import * as ctx from '../node_modules/node-media-server/node_core_ctx';
import * as db from "./database";
import {config} from "./config";
import { messageRateLimitPresets } from 'dank-twitch-irc';
const {readValue, writeValue} = require('@mediafish/amf0');
const sleep = ms => new Promise(resolve => setTimeout(resolve, ms));
const { exec, execFile } = require('child_process');
@ -51,15 +48,6 @@ if (cluster.isMaster) {
var server = net.createServer({ pauseOnConnect: true }, function(connection) {
if(nextWorker >= workers.length) nextWorker = 0;
var worker = workers[nextWorker];
/*connection.on('data', (chunk) => {
const buff = Buffer.from(chunk);
let offset, value, array = [];
while(true) {
[offset, value] = readValue(buff, offset);
console.log(JSON.stringify(value, null, 4));
array.push(value);
}
});*/
worker.send('rtmp-session:connection', connection); //send connection to worker
}).listen(config['rtmp']['port']);