notifications.subscribe()

Type Function
Return value none
Revision Release 2024.3703
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" )