Documentation

RelaySetInterface

Table of Contents

Methods

addRelay()  : void
Add relay to this set.
connect()  : bool
Connect to all relays in this set.
createFromUrls()  : void
Create a relay set from a list of relay URLs.
disconnect()  : bool
Disconnect all relays in this set.
getRelays()  : array<string|int, mixed>
Get all relays.
isConnected()  : bool
All are relays connected?
removeRelay()  : void
Remove relay from this set.
send()  : CommandResultInterface
Sends the message to all the relays in this set.
setMessage()  : void
The message to be sent to the relays.
setRelays()  : void
Set relays in this set.

Methods

connect()

Connect to all relays in this set.

public connect() : bool
Return values
bool

createFromUrls()

Create a relay set from a list of relay URLs.

public createFromUrls(string|array<string|int, mixed> $urls) : void
Parameters
$urls : string|array<string|int, mixed>

disconnect()

Disconnect all relays in this set.

public disconnect() : bool
Return values
bool

getRelays()

Get all relays.

public getRelays() : array<string|int, mixed>
Return values
array<string|int, mixed>

isConnected()

All are relays connected?

public isConnected() : bool
Return values
bool

setRelays()

Set relays in this set.

public setRelays(array<string|int, mixed> $relays) : void
Parameters
$relays : array<string|int, mixed>

        
On this page

Search results