Skip to content

Connection beta ​

Interface of @v12-engine/engine/server

ts
export interface Connection extends Transport

A connection, with what it came with: the address it was asked at, and who from

Members ​

address ​

ts
readonly address: string;

The network address the connection comes from

bytesSent ​

ts
readonly bytesSent: number;

Bytes written to it so far, as they go over the wire: compressed, where it is

compressed ​

ts
readonly compressed: boolean;

Whether what goes over it is compressed (permessage-deflate)

url ​

ts
readonly url: string;

The address the connection was asked at