RelaySetInterface
in
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
addRelay()
Add relay to this set.
public
addRelay(Relay $relay) : void
Parameters
- $relay : Relay
connect()
Connect to all relays in this set.
public
connect() : bool
Return values
boolcreateFromUrls()
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
boolgetRelays()
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
boolremoveRelay()
Remove relay from this set.
public
removeRelay(Relay $relay) : void
Parameters
- $relay : Relay
send()
Sends the message to all the relays in this set.
public
send() : CommandResultInterface
Return values
CommandResultInterfacesetMessage()
The message to be sent to the relays.
public
setMessage(MessageInterface $message) : void
Parameters
- $message : MessageInterface
setRelays()
Set relays in this set.
public
setRelays(array<string|int, mixed> $relays) : void
Parameters
- $relays : array<string|int, mixed>