SDK reference / Models / Messaging

RealtimeChannel

Kind: class

Namespace: Egulu.Sdk.Models.Messaging

A realtime channel: publish and subscribe over WebSocket on the location's Centrifugo server (W142; ADR-0825). The channel's name onthe server carries the project's UID and the channel's UID, and a client reaches it only with tokens from :issueConnectionToken:the server itself checks the signature, the expiry, the channel and the project of every connection and subscription, so a token of oneproject never subscribes or publishes to another project's channel. Subscribers may publish; history is kept in the server's memory only.

Properties

NameTypeJSON nameDescription
AnnotationsModels.Messaging.RealtimeChannel_annotations?annotationsAt most 256 KiB in all; never policy input.
Channelstring?channelThe channel's name on the realtime server (`plat:` and the project's and the channel's UIDs); a client subscribes to this name.
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
Descriptionstring?descriptionHuman-readable description.
DisplayNamestring?displayNameUp to 63 characters.
Endpointstring?endpointThe WebSocket URL a client connects to, set when the channel is READY.
EngineVersionstring?engineVersionThe realtime server's version.
Etagstring?etag"{generation}"; send it back in If-Match.
LabelsModels.Messaging.RealtimeChannel_labels?labelsAt most 64.
Locationstring?locationLocation ID where the channel is homed.
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
StateModels.Messaging.RealtimeChannelState?stateRealtime channel lifecycle states (W142; ADR-0825, ADR-0105).
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property