On MessagingService:SubscribeAsync, the page describes the callback like this:
Callback
The callback is invoked with two arguments:
This is false: it is only invoked with one argument, as correctly described in the “Usage Notes” box on Cross-Server Messaging:
- The callback function for
SubscribeAsync()
receives a table , not a string. This table contains bothmessage.Data
(the developer-defined data sent viaPublishAsync()
) andmessage.Sent
which is the Unix time in seconds at which the message was sent.