Table of Contents

Class ServerMessage

Namespace
Livekit.Server.Sdk.Dotnet
Assembly
LivekitApi.dll

from Server to Worker

public sealed class ServerMessage : IMessage<ServerMessage>, IEquatable<ServerMessage>, IDeepCloneable<ServerMessage>, IBufferMessage, IMessage
Inheritance
ServerMessage
Implements
IBufferMessage
Inherited Members

Constructors

ServerMessage()

public ServerMessage()

ServerMessage(ServerMessage)

public ServerMessage(ServerMessage other)

Parameters

other ServerMessage

Properties

Assignment

public JobAssignment Assignment { get; set; }

Property Value

JobAssignment

Availability

server asks worker to confirm availability for a job

public AvailabilityRequest Availability { get; set; }

Property Value

AvailabilityRequest

GoAway

the server is draining this control connection: re-register elsewhere, in-flight agent HTTP streams run to completion

public AgentHttp.Types.GoAway GoAway { get; set; }

Property Value

AgentHttp.Types.GoAway

MessageCase

public ServerMessage.MessageOneofCase MessageCase { get; }

Property Value

ServerMessage.MessageOneofCase

Pong

public WorkerPong Pong { get; set; }

Property Value

WorkerPong

Register

server confirms the registration, from this moment on, the worker is considered active

public RegisterWorkerResponse Register { get; set; }

Property Value

RegisterWorkerResponse

Termination

public JobTermination Termination { get; set; }

Property Value

JobTermination

Methods

ClearMessage()

public void ClearMessage()