Lean
$LEAN_TAG$
|
Wrapper for WebSocket4Net to enhance testability More...
Public Member Functions | |
void | Initialize (string url, string sessionToken=null) |
Wraps constructor More... | |
void | Send (string data) |
Wraps send method More... | |
void | Connect () |
Wraps Connect method More... | |
void | Close () |
Wraps Close method More... | |
Properties | |
bool | IsOpen [get] |
Wraps IsOpen More... | |
Events | |
EventHandler< WebSocketMessage > | Message |
on message event More... | |
EventHandler< WebSocketError > | Error |
On error event More... | |
EventHandler | Open |
On Open event More... | |
EventHandler< WebSocketCloseData > | Closed |
On Close event More... | |
Wrapper for WebSocket4Net to enhance testability
Definition at line 23 of file IWebSocket.cs.
void QuantConnect.Brokerages.IWebSocket.Initialize | ( | string | url, |
string | sessionToken = null |
||
) |
Wraps constructor
url | The target websocket url |
sessionToken | The websocket session token |
Implemented in QuantConnect.Brokerages.WebSocketClientWrapper.
void QuantConnect.Brokerages.IWebSocket.Send | ( | string | data | ) |
void QuantConnect.Brokerages.IWebSocket.Connect | ( | ) |
Wraps Connect method
Implemented in QuantConnect.Brokerages.WebSocketClientWrapper.
void QuantConnect.Brokerages.IWebSocket.Close | ( | ) |
Wraps Close method
Implemented in QuantConnect.Brokerages.WebSocketClientWrapper.
|
get |
Wraps IsOpen
Definition at line 51 of file IWebSocket.cs.
EventHandler<WebSocketMessage> QuantConnect.Brokerages.IWebSocket.Message |
on message event
Definition at line 56 of file IWebSocket.cs.
EventHandler<WebSocketError> QuantConnect.Brokerages.IWebSocket.Error |
On error event
Definition at line 61 of file IWebSocket.cs.
EventHandler QuantConnect.Brokerages.IWebSocket.Open |
On Open event
Definition at line 66 of file IWebSocket.cs.
EventHandler<WebSocketCloseData> QuantConnect.Brokerages.IWebSocket.Closed |
On Close event
Definition at line 71 of file IWebSocket.cs.