Skip to content

Extract Data Queue functions in to a real DataQueue class #97

Description

@kadler

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestkeep-openExempts stale action from auto closing the issue/pr.

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions