There are several subtleties with an answer to you question.
When I say "In real time" what I mean is , once the transaction happens and gets added to the Blockchain.
The block on the top of blockchain could be an orphan block. As the result, some transactions can become absent from blockchain latter.
If it's not a concern and you can tolerate some such transactions. You can get transactions even faster.
Use
in Bitcoin core client. However, it's possible that not all network transactions will be in your memory pool.
Also, some of those transactions could be refused by miners later. For example, low or zero fee.