SimulateScenario
extends Message
in package
Generated from protobuf message <code>livekit.SimulateScenario</code>
Table of Contents
Properties
- $scenario : mixed
Methods
- __construct() : mixed
- Constructor.
- getDisconnectSignalOnResume() : bool
- disconnect signal on resume
- getDisconnectSignalOnResumeNoMessages() : bool
- disconnect signal on resume before sending any messages from server
- getLeaveRequestFullReconnect() : bool
- full reconnect leave request
- getMigration() : bool
- simulate migration
- getNodeFailure() : bool
- simulate local node failure
- getScenario() : string
- getServerLeave() : bool
- server to send leave
- getSpeakerUpdate() : int
- simulate N seconds of speaker activity
- getSubscriberBandwidth() : int|string
- maximum bandwidth for subscribers, in bps when zero, clears artificial bandwidth limit
- getSwitchCandidateProtocol() : int
- switch candidate protocol to tcp
- hasDisconnectSignalOnResume() : mixed
- hasDisconnectSignalOnResumeNoMessages() : mixed
- hasLeaveRequestFullReconnect() : mixed
- hasMigration() : mixed
- hasNodeFailure() : mixed
- hasServerLeave() : mixed
- hasSpeakerUpdate() : mixed
- hasSubscriberBandwidth() : mixed
- hasSwitchCandidateProtocol() : mixed
- setDisconnectSignalOnResume() : $this
- disconnect signal on resume
- setDisconnectSignalOnResumeNoMessages() : $this
- disconnect signal on resume before sending any messages from server
- setLeaveRequestFullReconnect() : $this
- full reconnect leave request
- setMigration() : $this
- simulate migration
- setNodeFailure() : $this
- simulate local node failure
- setServerLeave() : $this
- server to send leave
- setSpeakerUpdate() : $this
- simulate N seconds of speaker activity
- setSubscriberBandwidth() : $this
- maximum bandwidth for subscribers, in bps when zero, clears artificial bandwidth limit
- setSwitchCandidateProtocol() : $this
- switch candidate protocol to tcp
Properties
$scenario
protected
mixed
$scenario
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = null ]) : mixed
Parameters
- $data : array<string|int, mixed> = null
-
{ Optional. Data for populating the Message object.
@type int $speaker_update simulate N seconds of speaker activity @type bool $node_failure simulate local node failure @type bool $migration simulate migration @type bool $server_leave server to send leave @type int $switch_candidate_protocol switch candidate protocol to tcp @type int|string $subscriber_bandwidth maximum bandwidth for subscribers, in bps when zero, clears artificial bandwidth limit @type bool $disconnect_signal_on_resume disconnect signal on resume @type bool $disconnect_signal_on_resume_no_messages disconnect signal on resume before sending any messages from server @type bool $leave_request_full_reconnect full reconnect leave request}
getDisconnectSignalOnResume()
disconnect signal on resume
public
getDisconnectSignalOnResume() : bool
Generated from protobuf field bool disconnect_signal_on_resume = 7;
Return values
boolgetDisconnectSignalOnResumeNoMessages()
disconnect signal on resume before sending any messages from server
public
getDisconnectSignalOnResumeNoMessages() : bool
Generated from protobuf field bool disconnect_signal_on_resume_no_messages = 8;
Return values
boolgetLeaveRequestFullReconnect()
full reconnect leave request
public
getLeaveRequestFullReconnect() : bool
Generated from protobuf field bool leave_request_full_reconnect = 9;
Return values
boolgetMigration()
simulate migration
public
getMigration() : bool
Generated from protobuf field bool migration = 3;
Return values
boolgetNodeFailure()
simulate local node failure
public
getNodeFailure() : bool
Generated from protobuf field bool node_failure = 2;
Return values
boolgetScenario()
public
getScenario() : string
Return values
stringgetServerLeave()
server to send leave
public
getServerLeave() : bool
Generated from protobuf field bool server_leave = 4;
Return values
boolgetSpeakerUpdate()
simulate N seconds of speaker activity
public
getSpeakerUpdate() : int
Generated from protobuf field int32 speaker_update = 1;
Return values
intgetSubscriberBandwidth()
maximum bandwidth for subscribers, in bps when zero, clears artificial bandwidth limit
public
getSubscriberBandwidth() : int|string
Generated from protobuf field int64 subscriber_bandwidth = 6;
Return values
int|stringgetSwitchCandidateProtocol()
switch candidate protocol to tcp
public
getSwitchCandidateProtocol() : int
Generated from protobuf field .livekit.CandidateProtocol switch_candidate_protocol = 5;
Return values
inthasDisconnectSignalOnResume()
public
hasDisconnectSignalOnResume() : mixed
hasDisconnectSignalOnResumeNoMessages()
public
hasDisconnectSignalOnResumeNoMessages() : mixed
hasLeaveRequestFullReconnect()
public
hasLeaveRequestFullReconnect() : mixed
hasMigration()
public
hasMigration() : mixed
hasNodeFailure()
public
hasNodeFailure() : mixed
hasServerLeave()
public
hasServerLeave() : mixed
hasSpeakerUpdate()
public
hasSpeakerUpdate() : mixed
hasSubscriberBandwidth()
public
hasSubscriberBandwidth() : mixed
hasSwitchCandidateProtocol()
public
hasSwitchCandidateProtocol() : mixed
setDisconnectSignalOnResume()
disconnect signal on resume
public
setDisconnectSignalOnResume(bool $var) : $this
Generated from protobuf field bool disconnect_signal_on_resume = 7;
Parameters
- $var : bool
Return values
$thissetDisconnectSignalOnResumeNoMessages()
disconnect signal on resume before sending any messages from server
public
setDisconnectSignalOnResumeNoMessages(bool $var) : $this
Generated from protobuf field bool disconnect_signal_on_resume_no_messages = 8;
Parameters
- $var : bool
Return values
$thissetLeaveRequestFullReconnect()
full reconnect leave request
public
setLeaveRequestFullReconnect(bool $var) : $this
Generated from protobuf field bool leave_request_full_reconnect = 9;
Parameters
- $var : bool
Return values
$thissetMigration()
simulate migration
public
setMigration(bool $var) : $this
Generated from protobuf field bool migration = 3;
Parameters
- $var : bool
Return values
$thissetNodeFailure()
simulate local node failure
public
setNodeFailure(bool $var) : $this
Generated from protobuf field bool node_failure = 2;
Parameters
- $var : bool
Return values
$thissetServerLeave()
server to send leave
public
setServerLeave(bool $var) : $this
Generated from protobuf field bool server_leave = 4;
Parameters
- $var : bool
Return values
$thissetSpeakerUpdate()
simulate N seconds of speaker activity
public
setSpeakerUpdate(int $var) : $this
Generated from protobuf field int32 speaker_update = 1;
Parameters
- $var : int
Return values
$thissetSubscriberBandwidth()
maximum bandwidth for subscribers, in bps when zero, clears artificial bandwidth limit
public
setSubscriberBandwidth(int|string $var) : $this
Generated from protobuf field int64 subscriber_bandwidth = 6;
Parameters
- $var : int|string
Return values
$thissetSwitchCandidateProtocol()
switch candidate protocol to tcp
public
setSwitchCandidateProtocol(int $var) : $this
Generated from protobuf field .livekit.CandidateProtocol switch_candidate_protocol = 5;
Parameters
- $var : int