StreamTimeout Parameter (Connect-Twitter Cmdlet)
The maximum number of seconds to continue waiting for results while streaming. When this value is reached and no tweets are returned, then the connection will be closed.
Syntax
Connect-Twitter -StreamTimeout string
Data Type
cstr
Default Value
"0"
Remarks
Set the value of StreamTimeout to 0 in order to keep the connection open indefinitely. Note that, if the value of this property is greater than zero, the value of the StreamPageSize property, will be overwriten and will be set to one(1).