C# Class Adaptive.ReactiveTrader.Messaging.WebSocket.ClientWebSocketWrapper

显示文件 Open project: AdaptiveConsulting/ReactiveTraderCloud Class Usage Examples

Public Methods

Method Description
Connect ( ) : Task
Create ( string uri ) : ClientWebSocketWrapper
Disconnect ( ) : Task
IsConnected ( ) : bool
OnConnect ( Action onConnect ) : void
OnDisconnect ( Action onDisconnect ) : void
OnMessage ( ClientWebSocketWrapper>.Action onMessage ) : void
SendMessage ( string message ) : Task

Protected Methods

Method Description
ClientWebSocketWrapper ( string uri ) : System

Private Methods

Method Description
CallOnConnected ( ) : void
CallOnDisconnected ( ) : void
CallOnMessage ( string message ) : void
SendMessageAsync ( string message ) : Task
StartListen ( ) : void

Method Details

ClientWebSocketWrapper() protected method

protected ClientWebSocketWrapper ( string uri ) : System
uri string
return System

Connect() public method

public Connect ( ) : Task
return Task

Create() public static method

public static Create ( string uri ) : ClientWebSocketWrapper
uri string
return ClientWebSocketWrapper

Disconnect() public method

public Disconnect ( ) : Task
return Task

IsConnected() public method

public IsConnected ( ) : bool
return bool

OnConnect() public method

public OnConnect ( Action onConnect ) : void
onConnect Action
return void

OnDisconnect() public method

public OnDisconnect ( Action onDisconnect ) : void
onDisconnect Action
return void

OnMessage() public method

public OnMessage ( ClientWebSocketWrapper>.Action onMessage ) : void
onMessage ClientWebSocketWrapper>.Action
return void

SendMessage() public method

public SendMessage ( string message ) : Task
message string
return Task