Skip to main content

MessagingServiceUtils

Functions

promisePublish

MessagingServiceUtils.promisePublish(
topicstring,
messageany
) → Promise

Wraps MessagingService:PublishAsync(topic, message)

promiseSubscribe

MessagingServiceUtils.promiseSubscribe(
topicstring,
callbackcallback
) → Promise<RBXScriptConnection>

Wraps MessagingService:SubscribeAsync(topic, callback)

Show raw api
{
    "functions": [
        {
            "name": "promisePublish",
            "desc": "Wraps MessagingService:PublishAsync(topic, message)",
            "params": [
                {
                    "name": "topic",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "message",
                    "desc": "",
                    "lua_type": "any"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 23,
                "path": "src/messagingserviceutils/src/Server/MessagingServiceUtils.lua"
            }
        },
        {
            "name": "promiseSubscribe",
            "desc": "Wraps MessagingService:SubscribeAsync(topic, callback)",
            "params": [
                {
                    "name": "topic",
                    "desc": "",
                    "lua_type": "string"
                },
                {
                    "name": "callback",
                    "desc": "",
                    "lua_type": "callback"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "Promise<RBXScriptConnection>"
                }
            ],
            "function_type": "static",
            "source": {
                "line": 50,
                "path": "src/messagingserviceutils/src/Server/MessagingServiceUtils.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "MessagingServiceUtils",
    "desc": "",
    "source": {
        "line": 4,
        "path": "src/messagingserviceutils/src/Server/MessagingServiceUtils.lua"
    }
}