mirror of
https://github.com/openstf/stf
synced 2025-10-03 17:59:28 +02:00
Initial version of transactions. Shell command implemented as an example. Still needs channel cleanup on app side, handling a device dying in the middle of a transaction, and getting device list back to normal.
This commit is contained in:
parent
84207e1f36
commit
8769b8040c
19 changed files with 433 additions and 181 deletions
|
@ -8,6 +8,9 @@ wire.ReverseMessageType = Object.keys(wire.MessageType)
|
|||
.reduce(
|
||||
function(acc, type) {
|
||||
var code = wire.MessageType[type]
|
||||
if (!wire[type]) {
|
||||
throw new Error('wire.MessageType has unknown value "' + type + '"')
|
||||
}
|
||||
wire[type].$code = wire[type].prototype.$code = code
|
||||
acc[code] = type
|
||||
return acc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue