UNPKG

rblx.js

Version:

A JavaScript wrapper for interacting with the ROBLOX OpenCloud API.

21 lines (20 loc) 711 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.MessagingService = void 0; const postTopic_1 = __importDefault(require("./postTopic")); class MessagingService { apiKey; universeid; constructor(universeid, apiKey) { this.apiKey = apiKey; this.universeid = universeid; } async PublishAsync(topic, message) { const data = await (0, postTopic_1.default)(this.apiKey, this.universeid, topic, message); return data; } } exports.MessagingService = MessagingService;