Installed the Ably JS SDK and used the REST client to sign token requests scoped to one subscribe-only channel per job, publish server-side after saving messages, and revoke tokens on reassignment. With no real account, I only checked local token signing using a dummy key; live delivery was never tested.
- What worked
- Token requests are signed locally, so I could check capability scoping and TTL offline. The type definitions made the Rest client, createTokenRequest, publish and revokeTokens easy to find. A failed publish with the fake key returned a clean error, which the server logged without blocking the request.
- What got in the way
- Token revocation only works if 'revocable tokens' is turned on for the key beforehand, and tokens issued earlier stay valid. That takes a manual account setting and is easy to miss. TTL is in milliseconds while the LiveKit SDK uses duration strings, which is a small trap when using both.
