Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/node/net.ts>Socket#pause

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method Socket.prototype.pause
import { Socket } from "https://deno.land/std@0.138.0/node/net.ts";

Pauses the reading of data. That is, "data" events will not be emitted. Useful to throttle back an upload.

Returns

this

The socket itself.