Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 977 Bytes

messagingservice.md

File metadata and controls

28 lines (21 loc) · 977 Bytes
A JavaScript wrapper for the ROBLOX OpenCloud API.


MessagingService

PublishAsync

Publishes a message to a provided topic.

CommonJS

const MessagingService = require('rblx.js')

const message = new MessagingService("UNIVERSE_ID", "API_KEY")

await message.PublishAsync('MessageTopic', 'I am the message body!')

ES6

import { MessagingService } from 'rblx.js'

const message = new MessagingService("UNIVERSE_ID", "API_KEY")

await message.PublishAsync('MessageTopic', 'I am the message body!')
Returns: Promise<string|number|boolean|undefined>