Roblox Wiki
Roblox Wiki
36,843
pages
Missing API Documentation
This API Class does not have any or complete API documentation. Please add API documentation if possible.

The MessageBusService class inherits from Instance.

Methods

Call(key: string, input: Variant): Variant

Parameters
NameType
keystring
inputVariant
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

GetLast(mid: string): Variant

Parameters
NameType
midstring
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

GetMessageId(domainName: string, messageName: string): string

Parameters
NameType
domainNamestring
messageNamestring
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

GetProtocolMethodRequestMessageId(protocolName: string, methodName: string): string

Parameters
NameType
protocolNamestring
methodNamestring
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

GetProtocolMethodResponseMessageId(protocolName: string, methodName: string): string

Parameters
NameType
protocolNamestring
methodNamestring
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

MakeRequest(protocolName: string, methodName: string, message: Variant, callback: Function, customTelemetryData: Variant): null

Parameters
NameType
protocolNamestring
methodNamestring
messageVariant
callbackFunction
customTelemetryDataVariant
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

Publish(mid: string, params: Variant): null

Parameters
NameType
midstring
paramsVariant
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

PublishProtocolMethodRequest(protocolName: string, methodName: string, message: Variant, customTelemetryData: Variant): null

Parameters
NameType
protocolNamestring
methodNamestring
messageVariant
customTelemetryDataVariant
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

PublishProtocolMethodResponse(protocolName: string, methodName: string, message: Variant, responseCode: int, customTelemetryData: Variant): null

Parameters
NameType
protocolNamestring
methodNamestring
messageVariant
responseCodeint
customTelemetryDataVariant
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

SetRequestHandler(protocolName: string, methodName: string, callback: Function): null

Parameters
NameType
protocolNamestring
methodNamestring
callbackFunction
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

Subscribe(mid: string, callback: Function, once: bool, sticky: bool): Instance

Parameters
NameType
midstring
callbackFunction
oncebool
stickybool
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

SubscribeToProtocolMethodRequest(protocolName: string, methodName: string, callback: Function, once: bool, sticky: bool): Instance

Parameters
NameType
protocolNamestring
methodNamestring
callbackFunction
oncebool
stickybool
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

SubscribeToProtocolMethodResponse(protocolName: string, methodName: string, callback: Function, once: bool, sticky: bool): Instance

Parameters
NameType
protocolNamestring
methodNamestring
callbackFunction
oncebool
stickybool
  • Security: RobloxScriptSecurity.
  • Thread safety: unsafe

External links[]