WebSocketCloseData
QuantConnect.Brokerages.WebSocketCloseData
WebSocketCloseData(code: int, reason: str, was_clean: bool)
Bases: Object
Defines data returned from a web socket close event
Initializes a new instance of the WebSocketCloseData class
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
code
|
int
|
The status code for the connection close |
required |
reason
|
str
|
The reaspn for the connection close |
required |
was_clean
|
bool
|
True if the connection has been closed cleanly, false otherwise |
required |
code
code: int
Gets the status code for the connection close.
reason
reason: str
Gets the reason for the connection close.
was_clean
was_clean: bool
Gets a value indicating whether the connection has been closed cleanly.