-
Notifications
You must be signed in to change notification settings - Fork 0
MessagingService
Compey edited this page Jan 19, 2023
·
2 revisions
A JavaScript wrapper for the ROBLOX OpenCloud API.
Publishes a message to a provided topic.
const MessagingService = require('rblx.js')
const message = new MessagingService({
apiKey: "API_KEY",
universeId: "UNIVERSE_ID",
intents: [ "messagingservice" ]
})
await message.PublishAsync('MessageTopic', 'I am the message body!')
import { MessagingService, ClientIntents } from 'rblx.js'
const message = new MessagingService({
apiKey: "API_KEY",
universeId: "UNIVERSE_ID",
intents: ClientIntents.MessagingService
})
await message.PublishAsync('MessageTopic', 'I am the message body!')
MIT © DevComp - see the LICENSE.md file for details.