SDK reference / Models / Messaging

RealtimeConnectionToken

Kind: class

Namespace: Egulu.Sdk.Models.Messaging

A connection token and a subscription token for one channel, returned once (W142; ADR-0902: never to an agent). Both are ES256 JWTs therealtime server verifies itself; nothing is stored, so a token cannot be revoked before it expires.

Properties

NameTypeJSON nameDescription
Channelstring?channelThe channel's name on the realtime server, to subscribe to.
ClientIdstring?clientIdThe client label.
ConnectionTokenstring?connectionTokenThe connection token (`connect.token` of Centrifugo's protocol).
Endpointstring?endpointThe WebSocket URL to connect to.
ExpiresAtDateTimeOffset?expiresAtWhen the server stops accepting them (UTC).
IssuedAtDateTimeOffset?issuedAtWhen the tokens were issued (UTC).
RealtimeChannelstring?realtimeChannelThe realtime channel's resource name.
SubscriptionTokenstring?subscriptionTokenThe subscription token of this channel (`subscribe.token`).
TtlSecondsint?ttlSecondsLifetime in seconds.
Userstring?userThe connection's user on the server: the project, the same for every client of the project.