ChatGPT API endpoint for server-side

Hello, I will make an endpoint on the server side to integrate my ChatGPT model into my site. I’m a little confused, I want your advice. I’m thinking of using WebSocket, do you think it makes sense, what’s your suggestion? What does the stream parameter in the ChatGPT API do? I’m not sure I understand what this parameter does.