Resgate JWT Authentication Example

The client is the same as the Edit Text Example, with the addition of the setOnConnect callback, which makes an attempt of authenticating the client using a jwt token. Without the token, model access will be denied.

The model can also be accessed via REST, if Resgate is configured with: