refresh_token

Refresh authentication token

When the JWT token used for authentication is about to expire, the client may emit a refresh_token event with a new token as payload.

socketLocal.emit('refresh_token', {'token': newToken})

If the new token fails authentication, the socket will be disconnected.