Class WebSocket
public sealed class WebSocket
- Inheritance
-
WebSocket
Constructors
WebSocket(IRuntimeSettings, RequestIdSource)
public WebSocket(IRuntimeSettings runtimeSettings, RequestIdSource idSource)
Parameters
runtimeSettings
IRuntimeSettingsidSource
RequestIdSource
Properties
Enabled
public bool Enabled { get; }
Property Value
ServerTimestamp
public long ServerTimestamp { get; }
Property Value
Methods
AddPushCallback(string, OnRequest)
public bool AddPushCallback(string requestID, OnRequest callback)
Parameters
Returns
Connect()
public void Connect()
Disconnect()
public void Disconnect()
IsConnected()
public bool IsConnected()
Returns
IsConnecting()
public bool IsConnecting()
Returns
Update()
public void Update()
Events
OnConnect
public event Action OnConnect
Event Type
OnDisconnect
public event Action OnDisconnect
Event Type
OnReceive
public event Action<string> OnReceive
Event Type
OnWebSocketFail
public event Action OnWebSocketFail
Event Type
OnWebSocketParametersNotValid
public event Action<string> OnWebSocketParametersNotValid