Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/net/mod.ts>TCPServer#listen

A networking framework that aims to enable the development of complex multi-port servers and clients.
Go to Latest
method TCPServer.prototype.listen
import { TCPServer } from "https://deno.land/x/net@v1.0.4/mod.ts";

Binds the server to the given host and port

Parameters

host: string
port: number

Returns

boolean

True if the server was successfully bound, false otherwise