Where to initialize global Socket Connections

Hi There, I want to make a table of TCP Devices in the database and upon start of the strapi try to connect to all of them with net package . Then I need to keep that connection object in order to
send messages to the devices (bytes) .

Very Similar to this one

What do you think, what is the best way/part of strapi to achieve this?

Keep in mind that I need to access that object in Controllers in order to send some messages …