Home / Companies / PubNub / Blog / Post Details
Content Deep Dive

How to Send a Self-Destructing Message

Blog post from PubNub

Post Details
Company
Date Published
Author
Michael Carroll
Word Count
1,209
Language
English
Hacker News Points
-
Summary

The blog post is a tutorial on building a self-destructing chat message feature using Babel, an open-source chat widget and API built with PubNub, as part of a five-part series. It walks through the steps of setting up the PubNub JavaScript SDK, finding users using the Presence feature to detect online statuses, and sending messages with properties like recipient, sender, and time-to-live (TTL) to ensure messages self-destruct after a set duration. The process involves using the setInterval method to regularly update and eventually delete messages once their TTLs expire. The series covers setting up a chat application, key exchange systems, sending TLS encrypted messages, and building a chatroom UI, with resources available in the Chat Resource Center and on GitHub.