Developer API
...
WebSocket Functions
Function: unsubscribeResult()
3 min
docid\ wxgxpnpidcz6 2b6gh786 docid\ l2rwyc57gjg6s93mcecr9 / unsubscriberesult unsubscriberesult ( connection , subscriptionid ) void defined in https //github com/xandeum/xandeum web3 js/blob/master/src/websocket ts#l103 sends a websocket json rpc message to unsubscribe from a previously subscribed transaction result using the xandeumresultunsubscribed method (note custom method, ensure server side implementation matches) this function automatically closes the websocket connection after sending the unsubscribe request parameters connection connection the solana web3 connection with xandeum compatible json rpc endpoint (e g , 'https //api devnet solana com' ) subscriptionid string the id of the active subscription you want to cancel returns void