notifications.subscribe()

Type Function
Return value none
Revision Current Public Release (2018.3326)
Keywords notification, notifications, subscribe
See also notifications.unsubscribe()
notifications.*

Overview

Subscribe to a specific topic to receive notifications for it.

Syntax

notifications.subscribe( topic )
topic (required)

String. The topic to subscribe to.

Example

local notifications = require( "plugin.notifications.v2" )

notifications.subscribe( "news" )