OptionalcloseClose the transport and release runtime resources.
OptionalonOptionally register a listener invoked at most once when the transport
permanently stops delivering messages because the connection dropped (remote
close or network error). It is NOT invoked for a local close(). reason is
an Error for abnormal termination and undefined for a clean remote close.
Registering after the transport has already closed invokes the listener
asynchronously with the recorded reason. Returns an unsubscribe function.
When present, RPCChannel uses it to reject pending requests immediately
instead of waiting for their timeouts. Transports that omit it behave as
before: pending requests resolve, time out, or wait for destroy().
Send one message, optionally with transferables when supported.
Optionaltransfers: Transferable[]Subscribe to incoming messages and return an unsubscribe callback.
Message-level transport used by
RPCChannel.