nats-io / nats.ws

WebSocket NATS
Apache License 2.0
329 stars 29 forks source link

How i can use ObjectStore if is the interface? #236

Closed sheldygg closed 6 months ago

sheldygg commented 6 months ago

Observed behavior

ObjectStore is the interface

Expected behavior

In this issue you say what I must use ObjectStore

Server and client version

-

Host environment

No response

Steps to reproduce

No response

aricart commented 6 months ago

You can take a look at the jetstream documentation here: https://github.com/nats-io/nats.ws?tab=readme-ov-file#jetstream

From there, you can see the ObjectStore section. https://github.com/nats-io/nats.deno/blob/main/jetstream.md#objectstore

aricart commented 6 months ago

Just to give you a mental map, it all starts with the NatsConnection - there, there's the jetstream() call which will have a views property, which also has an os property which lets you access/create an ObjectStore. Very soon now, the JetStream functionality will be split out of nats.deno and that will centralize the documentation depending on what you are exploring.