Skip to main content

receive

method Deno.DatagramConn.receive
Jump to headingDatagramConn.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 Jump to heading

optional
Jump to headingp: Uint8Array

Return Type Jump to heading

Promise<[Uint8Array, Addr]>
Back to top