Closed mysilkworld closed 7 months ago
During file transfer, the stream never ends due to an error in the library.
Arguments are passed incorrectly to the constructor on line 299
Passed:
const stream = new MetaReadable({ id, name, size });
Expected:
class MetaReadable extends EventEmitter { constructor(id, name, size, options = {})
({ access: 'public', method: async ({ streamId }) => { const readable = context.client.getStream(streamId); const getChunks = async () => { console.log('start'); const chunks = []; for await (const chunk of readable) { chunks.push(chunk); } console.log('end'); }; getChunks(); return { result: 'Stream initialized' }; }, });
The stream should end.
No response
Fixed: https://github.com/metarhia/metacom/pull/497
Please try to use streams
Describe the bug
During file transfer, the stream never ends due to an error in the library.
Arguments are passed incorrectly to the constructor on line 299
Passed:
Expected:
To Reproduce
Expected behavior
The stream should end.
Screenshots
No response
Desktop (please complete the following information):
Additional context
No response