Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
interface Protocol.Network.DataReceivedEvent
import { type Protocol } from "https://deno.land/x/pptr@1.2.0/mod.ts";
const { DataReceivedEvent } = Protocol.Network;

Fired when data chunk was received over the network.

Properties

requestId: RequestId

Request identifier.

timestamp: MonotonicTime

Timestamp.

dataLength: integer

Data chunk length.

encodedDataLength: integer

Actual bytes received (might be less than dataLength for compressed encodings).