mydevices socket api