PublicConnection
Provides a wrapper for functions used in public connection ( created using `Endpoint.connectPublic).
Constructors
constructor
constructor(platform: Endpoint)
Name | Type | Description |
---|---|---|
platform | Endpoint |
Methods
getInboxPublicView
Fetches Inbox public view.
async getInboxPublicView(inboxId: string)
Name | Type | Description |
---|---|---|
inboxId | string | ID of Inbox to get public meta |
Type | Description |
---|---|
Promise<InboxPublicView> |
sendDataToInbox
Sends data and optional files to an Inbox.
async sendDataToInbox(inboxId: string, entry: InboxEntryPayload)
Name | Type | Description |
---|---|---|
inboxId | string | ID of Inbox to send the entry to |
entry | InboxEntryPayload | `InboxEntryPayload` object |
Type | Description |
---|---|
Promise<void> | a promise that resolves when the data and files have been successfully sent to the Inbox |