Documentation

UserPacket extends Message
in package

Generated from protobuf message <code>livekit.UserPacket</code>

Table of Contents

Properties

$end_time  : mixed
Generated from protobuf field <code>optional uint64 end_time = 10;</code>
$id  : mixed
Unique ID to identify the message
$nonce  : mixed
added by SDK to enable de-duping of messages, for INTERNAL USE ONLY
$participant_identity  : mixed
Generated from protobuf field <code>string participant_identity = 5 [deprecated = true];</code>
$participant_sid  : mixed
participant ID of user that sent the message
$payload  : mixed
user defined payload
$start_time  : mixed
start and end time allow relating the message to specific media time
$topic  : mixed
topic under which the message was published
$destination_identities  : mixed
identities of participants who will receive the message (sent to all by default)
$destination_sids  : mixed
the ID of the participants who will receive the message (sent to all by default)

Methods

__construct()  : mixed
Constructor.
clearEndTime()  : mixed
clearId()  : mixed
clearStartTime()  : mixed
clearTopic()  : mixed
getDestinationIdentities()  : RepeatedField<string|int, string>
identities of participants who will receive the message (sent to all by default)
getDestinationSids()  : RepeatedField<string|int, string>
the ID of the participants who will receive the message (sent to all by default)
getEndTime()  : int|string
Generated from protobuf field <code>optional uint64 end_time = 10;</code>
getId()  : string
Unique ID to identify the message
getNonce()  : string
added by SDK to enable de-duping of messages, for INTERNAL USE ONLY
getParticipantIdentity()  : string
Generated from protobuf field <code>string participant_identity = 5 [deprecated = true];</code>
getParticipantSid()  : string
participant ID of user that sent the message
getPayload()  : string
user defined payload
getStartTime()  : int|string
start and end time allow relating the message to specific media time
getTopic()  : string
topic under which the message was published
hasEndTime()  : mixed
hasId()  : mixed
hasStartTime()  : mixed
hasTopic()  : mixed
setDestinationIdentities()  : $this
identities of participants who will receive the message (sent to all by default)
setDestinationSids()  : $this
the ID of the participants who will receive the message (sent to all by default)
setEndTime()  : $this
Generated from protobuf field <code>optional uint64 end_time = 10;</code>
setId()  : $this
Unique ID to identify the message
setNonce()  : $this
added by SDK to enable de-duping of messages, for INTERNAL USE ONLY
setParticipantIdentity()  : $this
Generated from protobuf field <code>string participant_identity = 5 [deprecated = true];</code>
setParticipantSid()  : $this
participant ID of user that sent the message
setPayload()  : $this
user defined payload
setStartTime()  : $this
start and end time allow relating the message to specific media time
setTopic()  : $this
topic under which the message was published

Properties

$end_time

Generated from protobuf field <code>optional uint64 end_time = 10;</code>

protected mixed $end_time = null

$id

Unique ID to identify the message

protected mixed $id = null

Generated from protobuf field optional string id = 8;

$nonce

added by SDK to enable de-duping of messages, for INTERNAL USE ONLY

protected mixed $nonce = ''

Generated from protobuf field bytes nonce = 11;

$participant_identity

Generated from protobuf field <code>string participant_identity = 5 [deprecated = true];</code>

protected mixed $participant_identity = ''

$participant_sid

participant ID of user that sent the message

protected mixed $participant_sid = ''

Generated from protobuf field string participant_sid = 1 [deprecated = true];

$payload

user defined payload

protected mixed $payload = ''

Generated from protobuf field bytes payload = 2;

$start_time

start and end time allow relating the message to specific media time

protected mixed $start_time = null

Generated from protobuf field optional uint64 start_time = 9;

$topic

topic under which the message was published

protected mixed $topic = null

Generated from protobuf field optional string topic = 4;

$destination_identities

identities of participants who will receive the message (sent to all by default)

private mixed $destination_identities

Generated from protobuf field repeated string destination_identities = 6 [deprecated = true];

$destination_sids

the ID of the participants who will receive the message (sent to all by default)

private mixed $destination_sids

Generated from protobuf field repeated string destination_sids = 3 [deprecated = true];

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 string $participant_sid
      participant ID of user that sent the message
@type string $participant_identity
@type string $payload
      user defined payload
@type string[] $destination_sids
      the ID of the participants who will receive the message (sent to all by default)
@type string[] $destination_identities
      identities of participants who will receive the message (sent to all by default)
@type string $topic
      topic under which the message was published
@type string $id
      Unique ID to identify the message
@type int|string $start_time
      start and end time allow relating the message to specific media time
@type int|string $end_time
@type string $nonce
      added by SDK to enable de-duping of messages, for INTERNAL USE ONLY

}

clearStartTime()

public clearStartTime() : mixed

getDestinationIdentities()

identities of participants who will receive the message (sent to all by default)

public getDestinationIdentities() : RepeatedField<string|int, string>

Generated from protobuf field repeated string destination_identities = 6 [deprecated = true];

Return values
RepeatedField<string|int, string>

getDestinationSids()

the ID of the participants who will receive the message (sent to all by default)

public getDestinationSids() : RepeatedField<string|int, string>

Generated from protobuf field repeated string destination_sids = 3 [deprecated = true];

Return values
RepeatedField<string|int, string>

getEndTime()

Generated from protobuf field <code>optional uint64 end_time = 10;</code>

public getEndTime() : int|string
Return values
int|string

getId()

Unique ID to identify the message

public getId() : string

Generated from protobuf field optional string id = 8;

Return values
string

getNonce()

added by SDK to enable de-duping of messages, for INTERNAL USE ONLY

public getNonce() : string

Generated from protobuf field bytes nonce = 11;

Return values
string

getParticipantIdentity()

Generated from protobuf field <code>string participant_identity = 5 [deprecated = true];</code>

public getParticipantIdentity() : string
Return values
string

getParticipantSid()

participant ID of user that sent the message

public getParticipantSid() : string

Generated from protobuf field string participant_sid = 1 [deprecated = true];

Return values
string

getPayload()

user defined payload

public getPayload() : string

Generated from protobuf field bytes payload = 2;

Return values
string

getStartTime()

start and end time allow relating the message to specific media time

public getStartTime() : int|string

Generated from protobuf field optional uint64 start_time = 9;

Return values
int|string

getTopic()

topic under which the message was published

public getTopic() : string

Generated from protobuf field optional string topic = 4;

Return values
string

setDestinationIdentities()

identities of participants who will receive the message (sent to all by default)

public setDestinationIdentities(array<string|int, string> $var) : $this

Generated from protobuf field repeated string destination_identities = 6 [deprecated = true];

Parameters
$var : array<string|int, string>
Return values
$this

setDestinationSids()

the ID of the participants who will receive the message (sent to all by default)

public setDestinationSids(array<string|int, string> $var) : $this

Generated from protobuf field repeated string destination_sids = 3 [deprecated = true];

Parameters
$var : array<string|int, string>
Return values
$this

setEndTime()

Generated from protobuf field <code>optional uint64 end_time = 10;</code>

public setEndTime(int|string $var) : $this
Parameters
$var : int|string
Return values
$this

setId()

Unique ID to identify the message

public setId(string $var) : $this

Generated from protobuf field optional string id = 8;

Parameters
$var : string
Return values
$this

setNonce()

added by SDK to enable de-duping of messages, for INTERNAL USE ONLY

public setNonce(string $var) : $this

Generated from protobuf field bytes nonce = 11;

Parameters
$var : string
Return values
$this

setParticipantIdentity()

Generated from protobuf field <code>string participant_identity = 5 [deprecated = true];</code>

public setParticipantIdentity(string $var) : $this
Parameters
$var : string
Return values
$this

setParticipantSid()

participant ID of user that sent the message

public setParticipantSid(string $var) : $this

Generated from protobuf field string participant_sid = 1 [deprecated = true];

Parameters
$var : string
Return values
$this

setPayload()

user defined payload

public setPayload(string $var) : $this

Generated from protobuf field bytes payload = 2;

Parameters
$var : string
Return values
$this

setStartTime()

start and end time allow relating the message to specific media time

public setStartTime(int|string $var) : $this

Generated from protobuf field optional uint64 start_time = 9;

Parameters
$var : int|string
Return values
$this

setTopic()

topic under which the message was published

public setTopic(string $var) : $this

Generated from protobuf field optional string topic = 4;

Parameters
$var : string
Return values
$this

        
On this page

Search results