zwift-packet-monitor
This module monitors Zwift UDP traffic and emits events for the player state updates.
Install
On Windows this requires WinPcap. On other systems, libpcap should be installed.
npm install zwift-packet-monitor
Usage
const ZwiftPacketMonitor = // interface is cap interface name (can be device name or IP address)const monitor = interface monitor monitor // The Zwift server sends states in batches. This event is emitted at the end of each incoming batchmonitor monitorstart