Enumeration of events emitted by the Server objects

Variables

@:value(cast "close")@:enum@:implinlineread onlyClose:ServerEvent<() ‑> Void> = "close"

Emitted when the server closes. Note that if connections exist, this event is not emitted until all connections are ended.

@:value(cast "connection")@:enum@:implinlineread onlyConnection:ServerEvent<Socket ‑> Void> = "connection"

Emitted when a new connection is made.

@:value(cast "error")@:enum@:implinlineread onlyError:ServerEvent<Error ‑> Void> = "error"

Emitted when an error occurs. The 'close' event will be called directly following this event. See example in discussion of server.listen.

@:value(cast "listening")@:enum@:implinlineread onlyListening:ServerEvent<() ‑> Void> = "listening"

Emitted when the server has been bound after calling Server.listen.