By inspecting the values I've been getting back from the server. Also, from https://github.com/jcs/adb/blob/master/SERVICES.TXT and https://github.com/mozilla/libadb.js/blob/master/android-tools/adb-bin/OVERVIEW.TXT. I'll add these links into the library.