Close the client, causing all pending promises to immediately reject. You may call close() multiple times.
For Internal Use Only.
Note that this does not set .broken=true
. A rejected request may not
always indicate a broken connection. The caller should set .broken
when
warranted.
Send a message to the server.
Can be an osc-min object json or a Buffer
See osc-min docs for details
can be a port number, or an options object