Clients - TezosLive.io Endpoint or Azure Functions
If you are using TezosLive.io Endpoint or Azure Functions.
For reference please take a look at AgileVentures.TezPusher.SampleClient.
Or you can check out deployed version of this app available at https://client-staging.tezoslive.io/.
You need a SignalR client library. In this sample we are using https://www.npmjs.com/package/@aspnet/signalr.
Your usage may vary depending on your programming language and used client library.
Using the data from the
/api/negotiate
response we can now connect to a SignalR hub, whereresponse.url
is theurl
parameter from/api/negotiate
response callresponse.accessToken
is theaccessToken
parameter from/api/negotiate
response call.
this.hubConnection = new signalR.HubConnectionBuilder()
.withUrl(response.url, { accessTokenFactory: () => response.accessToken })
.configureLogging(signalR.LogLevel.Information)
.build();
this.hubConnection.start().catch(err => console.error(err.toString()));
Last modified 3yr ago