Skip to main content
Module

x/net/mod.ts>TCPEvents

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

A static class that aims to enumerate events available to TCP servers and clients.

Static Properties

readonly
CONNECT: string

Emitted when a client connects to the server.

readonly
DISCONNECT: string

Emitted when a client disconnects from the server.

readonly
ERROR: string

Emitted when an error occurs.

readonly
LISTENING: string

Emitted when the server is listening for connections.

readonly
RECEIVED_DATA: string

Emitted when the client receives data.