Actix websocket

I have to retrieve json data from my database to send them to an actix websocket client, all my attempts were unsuccessful, please help me

What database library are you using? sqlx? something else?

Can you post what you tried? It's a lot easier to modify something that is halfway there than to start from scratch.