fetchToken

Requests the token from our backend token service

Parameters

urlBase

: base URL specifying where the token server is located

channelName

: Name of the channel we're requesting for

userId

: User ID of the user trying to join (0 for any user)

callback

: Callback method for returning either the string token or error