Skip to content

SocketServer beta ​

Interface of @v12-engine/engine/server

ts
export interface SocketServer extends ConnectionSource

A WebSocket server: onConnection is told of each connection made. close stops it, and closes them all

Members ​

port ​

ts
readonly port: number;

The port it listens on: the one given, or the one it was given for 0

server ​

ts
readonly server: Server;

The underlying Node HTTP server