Broadcasts

Description

A broadcast is an immutable public signed message created by an account asset. Broadcasts can use group tags to be displayed in a group feed and be awarded relevance tokens from group relevance owners that find the content relevant to the group.

A broadcast is the core database asset that is used as consumer content for the Global, Group, and Account feeds. They are messages created through the broadcast area and signed by accounts. These messages can be 240 characters long, any handle characters are excluded from the character count as well as any portion of a url other than the root domain.

If a handle (#, @ or >) is used in a broadcast it will automatically link to the coorosponding asset. A # is used to tag a group or week, an @ is used to tag an account and a > is used to reply to another broadcast.

If a url is used in a broadcast it will be parsed, linked and stripped to the root domain. The first url in any broadcast will be parsed and embeded. If no content is found at the link, a screenshot of the webpage will be shown along with the title of the website.

Broadcasts will be filed under the week it was created. All broadcasts can be found in the Global Feed of their week, in all groups they tag and on the author’s account page. A broadcast with a mention will also show up in the mentions section of their account page. Any reply to a broadcast will be shown on the individual post page when selected.

Any broadcast posted generates one status point for the author and can be used to transfer to other authors for their content.

To toggle the broadcast area on a compatible page, tap the bullhorn icon. Your message preview should update as you type.

Broadcast Asset

// This is a broadcast asset
const broadcast = {
    appId: APP_ID,
    year: "year-" + new Date().getWeekYear(),
    week: "week-" + new Date().getWeek().doubleDigitString(),
    type: ASSET_BROADCAST,
    account: user.publicKey,
    timestamp: new Date().toString()
}

Broadcast Data

// This is a message data type
const message = {
    appId: APP_ID,
    year: "year-" + new Date().getWeekYear(),
    week: "week-" + new Date().getWeek().doubleDigitString(),
    type: DATA_MESSAGE,
    data: {
        description: "Broadcast message",
        timestamp: new Date().toString(),
        message: "This is a #test #message."
    }
}