MessagingService
Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.
Up and coming
Send one message to every program on this computer that listens on its topic, with no addresses to look up.
use MessagingService gives it, with Roblox's MessagingService names. PublishAsync sends a message on a topic, JSON-encoded and at most 1 MB, and each SubscribeAsync callback gets it in Roblox's shape, a table with Data and Sent.
A service: write use MessagingService.
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| Connected | boolean | read-only |
Methods
| Name | Arguments | Returns | Description |
|---|---|---|---|
| PublishAsync yields | (topic: string, message: any) | (boolean, string?) | Publishes the message on the topic, JSON-encoded; at most 1 MB. |
| SubscribeAsync yields | (topic: string, callback: (message: { Data: any, Sent: number }) -> ()) | (ShotConnection?, string?) | Calls the callback with each message on the topic in Roblox's shape: a table with Data and Sent. |
Events
| Name | Passes | Description |
|---|---|---|
| ConnectionChanged | (boolean) |
From ShotInstance 33
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
