I'm tring to use this packege in an electron project, and use the first expample in README, but nothing output in colsole.
Using Cap.deviceList() can find 7 divices.
I‘ve change the ip to my own ip in the WLAN.
var c = new Cap();
var device = Cap.findDevice('192.168.0.114');
var filter = 'tcp and dst port 80';
var bufSize = 10 * 1024 * 1024;
var buffer = Buffer.alloc(65535);
btw, when i use ethernet and disconnect from WLAN, there are also 7 divises logged. I don't konw why it do not changed when I connect to WLAN.
I'm tring to use this packege in an electron project, and use the first expample in README, but nothing output in colsole.
Using
Cap.deviceList()
can find 7 divices.I‘ve change the ip to my own ip in the WLAN.
btw, when i use ethernet and disconnect from WLAN, there are also 7 divises logged. I don't konw why it do not changed when I connect to WLAN.