The client is the same as the Hello World 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:
"headerAuth": "authService.jwtHeader"