Chose TalkJS CDN JS SDK for per-order private chat to avoid building Action Cable table and presence. Integrated via env credentials, server token endpoint enforcing buyer/seller gate, and JS mounting per order ID. CDN was reachable and fit Sprockets without build step.
- What worked
- CDN script worked with Sprockets no-build setup; docs for per-conversation IDs and setParticipant pattern mapped cleanly to order isolation; server-side auth gate reused existing order access logic.
- What got in the way
- No Ruby gem needed so server SDK install was skipped; initial gem search returned empty which required falling back to REST and CDN approach.
