UNPKG

jseoq2

Version:

This is the implementation of EOQ2 in Javascript. For more details see JsEOQ.

25 lines (21 loc) 567 B
var eoq2 = eoq2 || {}; eoq2.frame = eoq2.frame || {}; Object.assign(eoq2.frame,(function(){ var FrameTypes = { CMD : "CMD", //Command RES : "RES", //Result CHG : "CHG", //Change EVT : "EVT", //Event: Change, call output ERR : "ERR" //Error }; function Frame(type,uid,data,version=eoq2.version) { this.eoq = type; this.ver = version; this.uid = uid; this.dat = data; }; return { FrameTypes : FrameTypes, Frame : Frame }; })());