Table of Contents

Class MessageServiceConnection

Namespace
TaleWorlds.Network
Assembly
TaleWorlds.Network.dll
public abstract class MessageServiceConnection
Inheritance
MessageServiceConnection
Inherited Members

Constructors

MessageServiceConnection()

public MessageServiceConnection()

Fields

OldState

public ConnectionState OldState

Field Value

ConnectionState

State

public ConnectionState State

Field Value

ConnectionState

Properties

Address

public string Address { get; protected set; }

Property Value

string

Methods

Init(string, string)

public abstract void Init(string address, string token)

Parameters

address string
token string

InvokeClosed()

protected void InvokeClosed()

InvokeStateChanged(ConnectionState, ConnectionState)

protected void InvokeStateChanged(ConnectionState oldState, ConnectionState newState)

Parameters

oldState ConnectionState
newState ConnectionState

RegisterProxyClient(string, IMessageProxyClient)

public abstract void RegisterProxyClient(string name, IMessageProxyClient playerClient)

Parameters

name string
playerClient IMessageProxyClient

SendAsync(string)

public abstract Task SendAsync(string text)

Parameters

text string

Returns

Task

StartAsync()

public abstract Task StartAsync()

Returns

Task

StopAsync()

public abstract Task StopAsync()

Returns

Task

Events

Closed

public event MessageServiceConnection.ClosedDelegate Closed

Event Type

MessageServiceConnection.ClosedDelegate

StateChanged

public event MessageServiceConnection.StateChangedDelegate StateChanged

Event Type

MessageServiceConnection.StateChangedDelegate

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).