class

Tinrelay::Client

Inherits Reference < Object

Constants

MAX_PLAINTEXT_BYTES = 16 * 1024

Constructors

join(keyring_path : String, server : String, ship : String, passphrase : String, owner_path : String | Nil = nil) : Client
Source
new(keyring : Tinrelay::Keyring, passphrase : String, remote : Remote | Nil = nil)
Source

Instance methods

acknowledge(transmission_id : String) : Nil
Source
acknowledge_hail(hail_id : String) : Nil
Source
acknowledge_retune(owner_ship : String, generation : Int32) : Nil
Source
allow_contact(peer_ship : String, local_hail_id : String, spool : Spool) : ShipContact
Source
close_contact(peer_ship : String) : Int32
Source
hail(recipient_ship : String, expires_in : Int64 = HAIL_LIFETIME_SECONDS.to_i64) : Hail
Source
keyring
Source
passphrase
Source
radio_collect(spool : Spool, hold_seconds : Int32 = 25) : RadioEvent
Source
radio_poll(spool : Spool) : RadioEvent | Nil
Source
radio_wait(spool : Spool, hold_seconds : Int32 = 25) : RadioEvent
Source
remote
Source
retry(outbox : Outbox, transmission_id : String) : SignedRelayEnvelope
Source
rotate_owner
Source
send(recipient : String, body : String, from_label : String | Nil = nil, expires_in : Int64 = FALLBACK_LIFETIME_SECONDS.to_i64, outbox : Outbox | Nil = nil, observer : OutgoingObserver | Nil = nil) : SignedRelayEnvelope
Source
ship_change(operation : String) : Nil
Source
sync_radio!

Contact-close is the only radio-generation transition. One prospective identity is saved before submission; registry state either promotes that exact identity or leaves it pending for an exact retry after restart.

Source
unblock_contact(peer_ship : String) : ShipContact
Source
who(ship_or_coordinate : String) : String
Source