PST SDK
5.0.1.0-acae3ae
|
Close all opened tracking result streams opened through the REST API. This is useful when too many streams are still opened. At maximum, two data stream can be opened through the REST API. 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 two first ones to attempt 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.
POST /PSTapi/CloseDataStream HTTP/1.1
Host: address:port
Returns a status message.
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 |