Skip to content

API reference / @chanx-js/client / core / TopicSnapshot

Interface: TopicSnapshot<Ref> ​

Defined in: packages/client/src/core/controller.ts:456

Extended by ​

Type Parameters ​

Type ParameterDefault type
Ref extends TopicRefTopicRef

Properties ​

lastMessage ​

ts
lastMessage: TopicMessage<Ref> | null;

Defined in: packages/client/src/core/controller.ts:460


messages ​

ts
messages: TopicMessage<Ref>[];

Defined in: packages/client/src/core/controller.ts:461


status ​

ts
status: SocketStatus;

Defined in: packages/client/src/core/controller.ts:457


subscribed ​

ts
subscribed: boolean;

Defined in: packages/client/src/core/controller.ts:459

Whether the server has confirmed the subscription.

MIT licensed