Class WebSocketClient
Inheritance
System.Object
WebSocketClient
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: AltV.Net.Client.dll
Syntax
public class WebSocketClient : BaseObject, IInternalBaseObject, IWebSocketClient, IBaseObject, ISharedBaseObject, INative
Constructors
|
Improve this Doc
View Source
WebSocketClient(ICore, IntPtr, UInt32)
Declaration
public WebSocketClient(ICore core, IntPtr webSocketClientNativePointer, uint id)
Parameters
Type |
Name |
Description |
ICore |
core |
|
IntPtr |
webSocketClientNativePointer |
|
System.UInt32 |
id |
|
|
Improve this Doc
View Source
WebSocketClient(ICore, String)
Declaration
public WebSocketClient(ICore core, string url)
Parameters
Type |
Name |
Description |
ICore |
core |
|
System.String |
url |
|
Properties
|
Improve this Doc
View Source
AutoReconnect
Declaration
public bool AutoReconnect { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
NativePointer
Declaration
public override IntPtr NativePointer { get; }
Property Value
Overrides
|
Improve this Doc
View Source
PerMessageDeflate
Declaration
public bool PerMessageDeflate { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
PingInterval
Declaration
public ushort PingInterval { get; set; }
Property Value
Type |
Description |
System.UInt16 |
|
|
Improve this Doc
View Source
ReadyState
Declaration
public WebSocketReadyState ReadyState { get; }
Property Value
|
Improve this Doc
View Source
Url
Declaration
public string Url { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
WebSocketClientNativePointer
Declaration
public IntPtr WebSocketClientNativePointer { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddSubProtocol(String)
Declaration
public void AddSubProtocol(string subProtocol)
Parameters
Type |
Name |
Description |
System.String |
subProtocol |
|
|
Improve this Doc
View Source
GetSubProtocols()
Declaration
public string[] GetSubProtocols()
Returns
Type |
Description |
System.String[] |
|
|
Improve this Doc
View Source
Send(Byte[])
Declaration
public bool Send(byte[] message)
Parameters
Type |
Name |
Description |
System.Byte[] |
message |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Send(String)
Declaration
public bool Send(string message)
Parameters
Type |
Name |
Description |
System.String |
message |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Declaration
public void SetExtraHeader(string name, string value)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
value |
|
|
Improve this Doc
View Source
Start()
Declaration
|
Improve this Doc
View Source
Stop()
Declaration
Implements
Extension Methods
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(IWebSocketClient, String, Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(IWebSocketClient, String, Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(IWebSocketClient, String, Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(IWebSocketClient, String, Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(IWebSocketClient, String, Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(IWebSocketClient, String, Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(IWebSocketClient, String, Action<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8, T9>(IWebSocketClient, String, Action<T1, T2, T3, T4, T5, T6, T7, T8, T9>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8>(IWebSocketClient, String, Action<T1, T2, T3, T4, T5, T6, T7, T8>)
Alt.On<T1, T2, T3, T4, T5, T6, T7>(IWebSocketClient, String, Action<T1, T2, T3, T4, T5, T6, T7>)
Alt.On<T1, T2, T3, T4, T5, T6>(IWebSocketClient, String, Action<T1, T2, T3, T4, T5, T6>)
Alt.On<T1, T2, T3, T4, T5>(IWebSocketClient, String, Action<T1, T2, T3, T4, T5>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>(IWebSocketClient, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(IWebSocketClient, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(IWebSocketClient, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(IWebSocketClient, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(IWebSocketClient, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(IWebSocketClient, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(IWebSocketClient, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8, T9>(IWebSocketClient, String, Func<T1, T2, T3, T4, T5, T6, T7, T8, T9>)
Alt.On<T1, T2, T3, T4, T5, T6, T7, T8>(IWebSocketClient, String, Func<T1, T2, T3, T4, T5, T6, T7, T8>)
Alt.On<T1, T2, T3, T4, T5, T6, T7>(IWebSocketClient, String, Func<T1, T2, T3, T4, T5, T6, T7>)
Alt.On<T1, T2, T3, T4, T5, T6>(IWebSocketClient, String, Func<T1, T2, T3, T4, T5, T6>)
Alt.On<T1, T2, T3, T4, T5>(IWebSocketClient, String, Func<T1, T2, T3, T4, T5>)