Hi Team,
I use Webhook, on my development and going well. In the new system the event stream is using SignalR. I have no idea about it. I have a sample Java doe, that I want to implement in FlowFuse. Can somebody drive me to the right direction how can I do it?
String url = "URL";
String token = "ACCESS_TOKEN";
HubConnection hubConnection = HubConnectionBuilder.create(url)
.withAccessTokenProvider(Single.defer(() -> {
// Your logic here.
return Single.just(token);
}))
.shouldSkipNegotiate(true)
.build();
hubConnection.on("ReceiveMessage", (message) -> {
System.out.println("New Message: " + message);
}, String.class);
//This is a blocking call
hubConnection.start().blockingAwait();