Hey guys! Does the watch api work with
# spicedb
t
Hey guys! Does the watch api work with the memory database? I've been trying to use it with the node client but no luck. Thanks 🙂
v
It should be supported yeah. What problem have you been having?
t
I tried with this first:
Copy code
js
const watchStream = spiceDbClient.watch(spiceDbV1.WatchRequest.create({}));
watchStream.on('data', (chunk: spiceDbV1.WatchResponse) => {
  console.log(chunk)
});
But it didn't work. However, it works if I change it to:
Copy code
js
const watchStream = spiceDbClient.watch(spiceDbV1.WatchRequest.create({}), {}, {});
watchStream.on('data', (chunk: spiceDbV1.WatchResponse) => {
  console.log(chunk)
});
The library version is:
Copy code
json
"@authzed/authzed-node": "^0.13.0"
v
would you mind opening an issue?
in the authzed node repo
2 Views