This is a minimal example of communication with ioBroker socket server. It will connect to the server and read all states of the adapter "admin" and subscribe to all states of the adapter "admin.0".