Understanding Foreground and Background Files in FYERS WebSocket API

What distinguishes background from foreground files in the WebSocket API of FYERS?

In WebSocket API, the foreground file displays data in the terminal, whereas the background file records it in a logs file, catering to different data handling needs.