Table of Contents

Class WebSocket

Namespace
Coherence.Runtime
Assembly
Coherence.Runtime.dll
public sealed class WebSocket
Inheritance
WebSocket

Constructors

WebSocket(IRuntimeSettings, RequestIdSource)

public WebSocket(IRuntimeSettings runtimeSettings, RequestIdSource idSource)

Parameters

runtimeSettings IRuntimeSettings
idSource RequestIdSource

Properties

Enabled

public bool Enabled { get; }

Property Value

bool

ServerTimestamp

public long ServerTimestamp { get; }

Property Value

long

Methods

AddPushCallback(string, OnRequest)

public bool AddPushCallback(string requestID, OnRequest callback)

Parameters

requestID string
callback OnRequest

Returns

bool

Connect()

public void Connect()

Disconnect()

public void Disconnect()

IsConnected()

public bool IsConnected()

Returns

bool

IsConnecting()

public bool IsConnecting()

Returns

bool

Update()

public void Update()

Events

OnConnect

public event Action OnConnect

Event Type

Action

OnDisconnect

public event Action OnDisconnect

Event Type

Action

OnReceive

public event Action<string> OnReceive

Event Type

Action<string>

OnWebSocketFail

public event Action OnWebSocketFail

Event Type

Action

OnWebSocketParametersNotValid

public event Action<string> OnWebSocketParametersNotValid

Event Type

Action<string>