概要
WebSocketクライアントを表します。
シグネチャー
1 |
|
名前空間
cAlgo.API
メソッド
Connect
概要
指定したURIにWebSocketClientを接続します。
シグネチャー
1 |
|
パラメーター
名前 | 型 | 説明 |
---|---|---|
uri | Uri | サーバーのURI。 |
戻り値
void
Close
概要
クローズ状態/理由を取得します。
シグネチャー
1 |
|
パラメーター
名前 | 型 | 説明 |
---|---|---|
closeStatus | WebSocketClientCloseStatus | |
closeStatusDescription | string |
戻り値
void
Send (2)
Send (1 of 2)
概要
指定されたテキストを送信します。
シグネチャー
1 |
|
パラメーター
名前 | 型 | 説明 |
---|---|---|
text | string | 送信するテキスト。 |
戻り値
void
Send (2 of 2)
概要
指定されたバイナリデータを送信します。
シグネチャー
1 |
|
パラメーター
名前 | 型 | 説明 |
---|---|---|
data | byte[] | 送信するデータ。 |
戻り値
void
Dispose
概要
WebSocketClientインスタンスによって使用されているアンマネージドリソースを解放します。
シグネチャー
1 |
|
戻り値
void
Properties
State
Summary
Gets the current state of the WebSocketClient instance.
Signature
1 |
|
Return Value
WebSocketClientState
CloseStatus
Summary
Gets the close status or reason.
Signature
1 |
|
Return Value
WebSocketClientCloseStatus?
CloseStatusDescription
Summary
Gets a description of the reason why the instance was closed.
Signature
1 |
|
Return Value
string
Events
Connected
Summary
Occurs when WebSocketClient is connected.
Signature
1 |
|
Disconnected
Summary
Occurs when WebSocketClient is disconnected.
Signature
1 |
|
TextReceived
Summary
Occurs when WebSocketClient receives text data.
Signature
1 |
|
BinaryReceived
Summary
Occurs when WebSocketClient receives binary data.
Signature
1 |
|
Related Tutorials
- WebSocket Client