Deno.DatagramConn.receive - Deno documentation
method Deno.DatagramConn.receive
DatagramConn.receive(p?: Uint8Array): Promise<[Uint8Array, Addr]>

Waits for and resolves to the next message to the instance.

Messages are received in the format of a tuple containing the data array and the address information.

Parameters

optional
p: Uint8Array

Return Type

Promise<[Uint8Array, Addr]>