Establish a websocket connection to receive real-time updates on transactions that are pending inclusion in a future block.
Example:
const ws = new WebSocket('ws://localhost:8669/subscriptions/txpool')
ws.onmessage = (event) => {
console.log(event.data)
}
/subscriptions/txpool