|
C# Client
0.0.0.7
C# Library to interface with Corelink
|
Inherits CoreLink.ControlStream.
Public Member Functions | |
| CorelinkWebSocket (string serverURL) | |
| Initializes a new instance of the T:WsClient class. More... | |
| async Task | connect () |
| Method which connects client to the server. More... | |
| override void | stopConnection () |
| bool | isConnecting () |
| Return if is connecting to the server. More... | |
| bool | isConnectionOpen () |
| Return if connection with server is open. More... | |
| override void | sendMessage (string message) |
| Method used to send a message to the server. More... | |
| string | getResponse () |
Public Member Functions inherited from CoreLink.ControlStream | |
| virtual void | onUpdate (string msg) |
| virtual void | onSubscriber (string msg) |
| virtual void | onStale (string msg) |
| virtual void | onDropped (string msg) |
Static Public Member Functions | |
| static string | streamToString (MemoryStream ms, Encoding encoding) |
| Converts memory stream into string. More... | |
Properties | |
| ConcurrentQueue< String > | receiveQueue [get] |
| BlockingCollection< ArraySegment< byte > > | sendQueue [get] |
Definition at line 16 of file CorelinkWebSocket.cs.
| CoreLink.CorelinkWebSocket.CorelinkWebSocket | ( | string | serverURL | ) |
Initializes a new instance of the T:WsClient class.
| serverURL | Server URL. |
Definition at line 42 of file CorelinkWebSocket.cs.
| async Task CoreLink.CorelinkWebSocket.connect | ( | ) |
Method which connects client to the server.
Definition at line 66 of file CorelinkWebSocket.cs.
| string CoreLink.CorelinkWebSocket.getResponse | ( | ) |
Definition at line 143 of file CorelinkWebSocket.cs.
| bool CoreLink.CorelinkWebSocket.isConnecting | ( | ) |
Return if is connecting to the server.
true, if is connecting to the server, false otherwise.Definition at line 113 of file CorelinkWebSocket.cs.
| bool CoreLink.CorelinkWebSocket.isConnectionOpen | ( | ) |
Return if connection with server is open.
true, if connection with server is open, false otherwise.Definition at line 122 of file CorelinkWebSocket.cs.
|
virtual |
Method used to send a message to the server.
| message | Message. |
Implements CoreLink.ControlStream.
Definition at line 135 of file CorelinkWebSocket.cs.
|
virtual |
Implements CoreLink.ControlStream.
Definition at line 97 of file CorelinkWebSocket.cs.
|
static |
Converts memory stream into string.
| ms | Memory Stream. |
| encoding | Encoding. |
Definition at line 281 of file CorelinkWebSocket.cs.
|
get |
Definition at line 31 of file CorelinkWebSocket.cs.
|
get |
Definition at line 32 of file CorelinkWebSocket.cs.