nodejs-itoolkit
nodejs-itoolkit copied to clipboard
Extract Data Queue functions in to a real DataQueue class
It should work something like this:
let dq = new DataQueue(transport, "MYLIB", "MYQUEUE");
await dq.send("This is a string");
await dq.sendAsEbcdic(*This is converted to UTF-8 bytes");
let s1 = await dq.receive();
let s2 = await dq.receiveFromEbcdic();
await dq.clear();
Additionally, objects and arrays could be serialized to JSON strings and sent.
Toolkit.sendToDataQueue and Toolkit.receiveFromDataQueue should be deprecated and removed in 2.0.
Might be good to have create/delete methods as well.
This is not needed for v1.0, moving to v1.1
:wave: Hi! This issue has been marked stale due to inactivity. If no further activity occurs, it will automatically be closed.