fix the bugs that were causing mutation response errors, and add duplicate subscription checks

MUTATIONS WORK BTW!!!
This commit is contained in:
2026-04-23 09:39:15 -05:00
parent 678ccdb1ba
commit c366164a9a
5 changed files with 50 additions and 8 deletions
+2 -1
View File
@@ -16,6 +16,7 @@ const rl = createInterface({
while (true) {
const message = await rl.question("Enter a message");
if (message) {
client.sendMutation("createMessage", { room: "1", message: message });
const result = await client.sendMutation("createMessage", { room: "1", message: message });
console.log("Mutation result", result);
}
}
+1 -1
View File
@@ -28,7 +28,7 @@
},
"node_modules/tether-ts": {
"version": "1.0.3",
"resolved": "git+ssh://git@github.com/wisplite/tether-ts.git#8945de00ece92ce1e939a3ff70c5312f80e56dda",
"resolved": "git+ssh://git@github.com/wisplite/tether-ts.git#82a462ee116789dd6832fe5ff079a63fcb91afc4",
"license": "ISC"
},
"node_modules/typescript": {