subscribe on the same WebSocket connection. Available over WebSocket only.
This method will use 20 Compute Units.
Reference: Here
Parameters
streams(array, optional) Names of streams to unsubscribe from, such asledger,transactions,transactions_proposed,validations,manifestsorbook_changes.accounts(array, optional) Account addresses to stop receiving updates for. This only stops messages if you previously subscribed to those accounts specifically; you cannot use it to filter accounts out of a stream.accounts_proposed(array, optional) Likeaccounts, but foraccounts_proposedsubscriptions that included not-yet-validated transactions.books(array, optional) Order books to unsubscribe from. Each member is an object withtaker_getsandtaker_pays(currency objects, omitissuerfor XRP) and optionallyboth(remove the subscription for both sides of the book) anddomain(permissioned DEX). A book subscribed with adomainis a different subscription from the open-DEX book, so send the samedomainto remove it.
Returns
result(object) Empty on success. Push messages for the removed subscriptions stop after this response.
{"jsonrpc":"2.0","id":2,"method":"unsubscribe","params":[{"streams":["ledger"]}]} is also accepted on the same WebSocket connection. Closing the WebSocket connection removes all of its subscriptions without needing an explicit unsubscribe.