1.1.0 • Published 11 months ago
messity v1.1.0
Messity Javascript library
How to connect dapp to the Messity protocol
import { Messity } from "messity";
Messity.connect({
senderName: "Some dapp name",
onSuccess: (userPrincipal) => {
// Persist userPrincipal in your backend and start sending messages!
},
onError: (e) => {
// Handle error
},
});