Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

std/node/dgram.ts>Socket#connect

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

Parameters

port: number
optional
address: string
optional
callback: () => void

Parameters

port: number
callback: () => void

Parameters

_port: number
optional
_arg1: unknown
optional
_arg2: unknown