finish mailbox
This commit is contained in:
+15
-1
@@ -37,12 +37,26 @@ UDN.subscribe("my-channel");
|
||||
UDN.unsubscribe("my-channel");
|
||||
|
||||
// mailbox
|
||||
UDN.onmailbox = (mailboxId: string) => {
|
||||
UDN.onmailboxcreate = (mailboxId: string) => {
|
||||
UDN.connectMailbox(mailboxId);
|
||||
}
|
||||
UDN.onmailboxconnect = (mailboxId: string) => {
|
||||
UDN.deleteMailbox(mailboxId);
|
||||
}
|
||||
UDN.onmailboxdelete = (mailboxId: string) => {
|
||||
console.log("mailbox deleted");
|
||||
}
|
||||
|
||||
UDN.requestMailbox();
|
||||
```
|
||||
|
||||
# Changelog
|
||||
|
||||
## 1.0.5
|
||||
|
||||
- add mailbox support
|
||||
|
||||
## 1.0.6
|
||||
|
||||
- add error handling with `connect()`
|
||||
- add `onmailboxdelete` listener
|
||||
Reference in New Issue
Block a user