setEntitlementToken method

dynamic setEntitlementToken(
  1. String token
)

Assign an entitlement token to the client or update its entitlement token.

To define which users of your application are entitled to subscribe to which subjects and/or to publish messages for which subjects, you will first have to configure an entitlement method using the parameter \c Entitlement of the MigratoryData server. Please refer to the documentation of the \c Entitlement parameter in the Configuration Guide to learn how to configure an entitlement method.

\param token an entitlement token.

Implementation

setEntitlementToken(String token) {
  clientImpl.setEntitlementToken(token);
}