mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Remove numeric flags in favor of plain string data. Scales better.
This commit is contained in:
@@ -16,12 +16,6 @@ module.exports = function(wire) {
|
||||
, absent: 'ABSENT'
|
||||
}[type]]
|
||||
}
|
||||
, toDeviceType: function(type) {
|
||||
return wire.DeviceStatus[{
|
||||
device: 'PHYSICAL'
|
||||
, emulator: 'VIRTUAL'
|
||||
}[type]]
|
||||
}
|
||||
, envelope: function(type, message) {
|
||||
return new wire.Envelope(type, message.encode()).encodeNB()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user