Skip to content
Snippets Groups Projects
Commit 0dde613f authored by Marin Karamihalev's avatar Marin Karamihalev
Browse files

qjs clientId fixes, notifyResp correction

parent 5b29dc59
No related branches found
Tags 0.3.9
No related merge requests found
Pipeline #91435 passed
{ {
"name": "usp-js", "name": "usp-js",
"version": "0.3.8", "version": "0.3.9",
"description": "Helper library for easy usp communication using mqtt over tcp or ws.", "description": "Helper library for easy usp communication using mqtt over tcp or ws.",
"main": "node/index.js", "main": "node/index.js",
"browser": "web/index.js", "browser": "web/index.js",
......
...@@ -12,12 +12,12 @@ const encode: EncodeFn = ({ subscriptionId }) => ({ ...@@ -12,12 +12,12 @@ const encode: EncodeFn = ({ subscriptionId }) => ({
}, },
body: { body: {
lookup: "Body", lookup: "Body",
request: { response: {
lookup: "Request", lookup: "Request",
notifyResp: { subscriptionId }, notifyResp: { subscriptionId },
}, },
}, },
}); } as any);
export default { export default {
decode, decode,
......
...@@ -11,6 +11,7 @@ describe("Test general API", function () { ...@@ -11,6 +11,7 @@ describe("Test general API", function () {
before(async () => { before(async () => {
device = await connect(config.ws as ConnectionOptions); device = await connect(config.ws as ConnectionOptions);
await device.del("Device.NAT.PortMapping.*.");
added = [ added = [
await device.add("Device.NAT.PortMapping."), await device.add("Device.NAT.PortMapping."),
await device.add("Device.NAT.PortMapping."), await device.add("Device.NAT.PortMapping."),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment