How to get and set variable through sockets?

Hello, I am wondering if it is possible to get and set variables through Dashboard, Primary, or any port?

I have seen “getVariable” being used in Dashboard. However, this didn’t work for me and I couldn’t find anything about it in the documentation.

image|622x184

Thank you in advance.

Maybe I think there is no way to do that.

The library of UnderAutomation allows to read variables.
It’s possible to set variables via a script sending but it pauses the main program.
To write a variable, you can use XML-RPC so that the robot asks your program for a new value for the variable.