create a new (initially disconnected) client
Just like create'
, but assume empty credentials (for backwards compatibility)
connect t
If the connection is not currently established, initiate one. Returns
a deferred that becomes determined when the connection is established.
If a connection is currently established, close it. Also, if we're trying to connect, give up.
listen_ignore_errors t
like listen
, but with no errors or meta data. 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), so you should
not call it many times throwing away the result. If you need to do this
use listen.
send t msg
send a message to the server. If the connection is
not currently established, initiate one.
`Dropped
. `Dropped
means that
there was an error, and the message will not be sent.