deno.com

method Deno.DatagramConn.receive

#DatagramConn.receive(p?: Uint8Array): Promise<[Uint8Array<ArrayBuffer>, 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 #

#p: Uint8Array
optional

Return Type #

Promise<[Uint8Array<ArrayBuffer>, Addr]>