MongooseA living laboratory of myriad worlds.

All help topics · Link to this topic

Showing help on 'listeners()'

Syntax: listeners ([OBJ <object> | INT <port>]) => LIST

Returns a list describing existing listening points, including the default one set up automatically by the server when it was started, unless that one has since been destroyed by a call to unlisten().

If an object or port is supplied, only matching listeners are returned. Each element of the returned list is a map with the following keys:

object: The object whose listener verbs are called.
port: The port or listener descriptor.
print-messages: True if database-configurable messages are printed for this listener.
ipv6: True if this listener uses IPv6.
interface: The interface being listened on.
tls: True if this listener uses TLS. This key is only present when ToastStunt has TLS support.

For the initial listening point, object is #0, port is determined by the command-line arguments or a network-configuration-specific default, and print-messages is true.