TypeError: clamscan.passthrough is not a function
midnightcodr opened this issue · comments
I am trying out the passthrough() example but unfortunately I am getting this
TypeError: clamscan.passthrough is not a function
I am initializing the connection options as
const clamscan = new NodeClam().init({
clamdscan: {
host: '127.0.0.1',
port: 3310,
}
});
as I am running the clamav service in a docker container (telnet 127.0.0.1 3310
works btw).
Ideas?
Never mind. I found the cause of the error - I didn't use .then()
or await
on the clamscan
instance. To fix the problem is as simple as
const clamscan = new NodeClam()
await clamscan.init({
clamdscan: {
host: '127.0.0.1',
port: 3310,
}
});
Great! Glad you figured it out. :-) I'm sorry I never saw this issue come through--I would have been happy to point that out.
No problem. I am so happy to find your library that provides the Stream/Transform ability that I need in my application.