Initializes the Local Server and begins listening on the specified port.
The port to listen for connections on.
Attaches an event listener to the Local Server.
The name of the event to listen for. Available events are 'message'.
The callback to invoke when the event is fired.
Writes data to all connected sockets. If message
is not a buffer,
it will be converted to a buffer using utf8
encoding. If it is
a buffer, it will not be affected.
The message to send.
Generated using TypeDoc
A static singleton class which manages a local TCP server.