onPacketReceived property
EventStream<ByteBuffer>
get
onPacketReceived
Triggered when an IP packet is received via the tunnel for the VPN session owned by the extension. |data|: The IP packet received from the platform.
Implementation
EventStream<ByteBuffer> get onPacketReceived =>
$js.chrome.vpnProvider.onPacketReceived
.asStream(($c) => (JSArrayBuffer data) {
return $c(data.toDart);
}.toJS);