Socket client-server : how to?

Hello,

First of all, I’m a very beginner on Home assistant.

I have developed a socket server. I can send json data to this server and read response.
There are two types of functions in this API :
→ get a state. For example : retrieve temperature of the server
→ start a task

I want to integrate a socket client in the home assistant frontend. I want to have the state information (and parse the result to display) and also a button to send an action.

I have seen I can create a custom component, but I don’t find the doc to do it easily.

Someone has an idea to solve my problem ? Or a specific add-on already exist for that ?

Thanks