create a new server, and start listening
get the port that the server is listening on
close t client
close connection to client
if it
exists. This does not prevent the same client from connecting
again later.
listen_ignore_errors t
like listen, but omit error conditions and
metadata. When listen_ignore_errors is called it installs a filter on
the stream that never goes away (unless t is destroyed, or you
provide a stop
).
send t client msg
send msg
to client
.
`Dropped
(meaning the
message was never handed to the OS), otherwise it will be
filled with with `Sent tm
where tm is the time (according to
Time.now) that the message was handed to the operating
system. It is possible that the deferred will never become
determined, for example in the case that the other side hangs,
but does not drop the connection.
send_ignore_errors t client msg
Just like send, but does not report
results. Your message will probably be sent successfully
sometime after you call this function. If you receive a
Disconnect
error on the listen channel in close time
proximity to making this call then your message was likely
dropped.
send_to_all t msg
send the same message to all connected clients.
send_to_some t msg names
send the same message to multiple connected clients.