PST SDK  5.1.0.0-e242fa9
CloseDataStream

Close all opened tracking result streams opened through the REST API. This is useful when too many streams are still opened. At maximum, 15 data streams can be opened through the REST API (this number can differ depending on machine configurations). When closing the streams like this, some consumers of the event stream, such as the JavaScript EventSource EventListener, will automatically try to reconnect after a timeout period. Be aware that only the first 15 clients attempting to connect will succeed. When closing a stream and opening a new one does not work, check if the old stream was not automatically re-opened.

Endpoint
  
  POST /PSTapi/CloseDataStream HTTP/1.1
  Host: address:port
 
Response

Returns a status message.

Verification table
Status Code Content Example Meaning
200 {"message":"Data streams successfully closed"} Success message
500 {"message":"UnhandledError: "} The server is in an undefined state and should be restarted