|
|
|
@ -7,7 +7,6 @@ const Streamer = require('../Streamer')
|
|
|
|
|
module.exports = exports = async function (path, fd, buffer, length, position, cb) {
|
|
|
|
|
try {
|
|
|
|
|
const { socket_uuid, node_uuid, descriptor } = await connector.simple_request('stream.getfd', { descriptor: fd })
|
|
|
|
|
console.log({socket_uuid, node_uuid, descriptor})
|
|
|
|
|
|
|
|
|
|
const streamer = new Streamer(socket_uuid, node_uuid, length, position, descriptor)
|
|
|
|
|
streamer.write(buffer).then(() => {
|
|
|
|
|