Disable Streaming
API-v2stream::disable
Using this method, you can disable specific streaming events.
Parameter* = required | Type | Description |
---|---|---|
client_id* | integer | This ID can be used to access data (e.g. via http://localhost:7783/event-stream?id=1) |
streamer_id* | string | An identifier for the data stream to disable. |
Parameter* = required | Type | Description |
---|---|---|
result | string | Optional. Success message confirming the stream was disabled |
stream::disable
POST
stream::disable{
"userpass": "RPC_UserP@SSW0RD",
"method": "stream::disable",
"mmrpc": "2.0",
"params": {
"client_id": 1,
"streamer_id": "BALANCE:MATIC"
}
}
{
"mmrpc": "2.0",
"result": {
"result": "Success"
},
"id": null
}
Parameter* = required | Type | Description |
---|---|---|
StreamerNotFound | string | Optional. The specified streamer_id was not found |
UnknownClient | string | Optional. No client has an open connection using this client_id |
{
"mmrpc": "2.0",
"error": "StreamerNotFound",
"error_path": "disable",
"error_trace": "disable:48]",
"error_type": "DisableError",
"error_data": "StreamerNotFound",
"id": null
}
{
"mmrpc": "2.0",
"error": "UnknownClient",
"error_path": "disable",
"error_trace": "disable:48]",
"error_type": "DisableError",
"error_data": "UnknownClient",
"id": null
}