Can a subscriber tell who published a message?

Follow

AMPS includes the user ID of the user who published the message in message headers when:

 

1. The user is authenticated to AMPS, and

2. The authentication module allows this information to be seen by subscribers

 

To get this information, call the getUserId() method on the message received. If this method call returns an empty string, then one of the conditions mentioned above isn't true.

Have more questions? Submit a request

Comments

Powered by Zendesk