feat: set data type as Buffer

This commit is contained in:
karishmas6
2024-10-16 14:01:24 +05:30
parent 35790424d0
commit 77fbc99931

View File

@@ -228,7 +228,7 @@ export class WorkflowInterpreter {
this.serializableData.push(data);
this.socket.emit('serializableCallback', data);
},
binaryCallback: async (data: string, mimetype: string) => {
binaryCallback: async (data: Buffer, mimetype: string) => {
this.binaryData.push({ mimetype, data: JSON.stringify(data) });
this.socket.emit('binaryCallback', { data, mimetype });
}