Module

std/node/net.ts>Socket#read

Deno standard library
Go to Latest
method Socket.prototype.read
import { Socket } from "https://dotland.deno.dev/std@0.116.0/node/net.ts";

Parameters

optional
size: number

Optional argument to specify how much data to read.

Returns

| string
| Uint8Array
| null
| undefined