Consume Hyperledger composer event in Angular Based Application which uses REST API - events

I am little new to UI freamework so please help me understand is there a way to consume an event if I have build the plain angular based app, which uses the composer rest api for UI (note: not a Node.js application)
Because as per documentation it says:
Node.js applications can subscribe to events from a business network by using the composer-client.BusinessNetworkConnection.on API call. Events are defined in the business network model file and are emitted by specified transactions in the transaction processor function file.
Redirection to blog or documentation link would be helpful.

We plan to expose events through the composer-rest-server however that work is not yet complete. See:
https://github.com/hyperledger/composer/issues/1177
Until that work is finished you will need to subscribe to events from within your Node.js express application and then publish them (via web sockets?) to your frontend.

Related

Does MassTransit support Activity / ConsolidationId on Azure?

I'm using Application Insights (AI) to instrument my code. AI uses Activity to provide some data. Activity.ParentId can be used as a per-transaction identifier, across multiple services, so that a single API call can be tracked through the code, to the database and other HTTP services etc.
MassTransit has a message ConsolidationId, to track (I believe) Sagas, but I don't think it is using the Activity.ParentId.
Am I right?
How can I get MT to use the Activity.ParentId as a ConsolidationId, both as a publisher and consumer?
MassTransit supports Open Telemetry, which can easily be configured to push data to Azure Application Insights.
There is a complete sample that shows how to configure it.

Use Laravel Queue with Google Tasks on App Engine Standard

I'm running Laravel 6 on Google App Engine Standard and trying to make Laravel Queues work with Google Tasks natively.
Currently I'm creating (dispatching) and handling tasks with custom classes, but I would like to use Google task as native Laravel Queues, so I can call Job::dispatch() dispatch(new Job) and use Mail, Notification with Queueable. But unfortunately it is beyond my abilities and I can’t figure out how everything is interconnected in Laravel.
Using Google Cloud API, you can create multiple queues for different target applications, deployed on Google App Engine in either Standard or Flexible environment.(Check here)
Here you can find detailed instructions on how to associate your Laravel project with Google Cloud Tasks processing asynchronous Jobs.
-Basically, you will create a task queue with a “queue.yaml” file, to handle the Cloud Tasks.
-Before Creating the Task:
---Pass the route of the API and the payload object for the Task.
---Authenticate userID in payload.
-Build/Create the Task. Using the method demonstrated on the example, it will use the Google API to build a Cloud Task and pass it to the task queue.
-Create the API routes in api.php.
-Create a TaskController which will route the different API to the specific (associateApp()) function.

Azure Bot Service Slack Integration

I'm currently evaluating Azure Bot Service using Azure Function as a Slack bot.
It works fine with direct and group messages, but I'm having troubles to make it work with app_mention events, the azure function is not getting fired at all.
Also, i'd like to experiment with slash commands, which are also a feature available to slack app.
Reading the docs, I understand have to write my own middleware to parse these messages, but it's not clear to me how can I do it with Functions.
Is it possible? Or will I need to host a separate webapp?
Turned out that Azure Bot Service is currently supporting a subset of Slack events out-of-the-box; this was not clearly stated in the documentation.
We ended up with a first prototype based on Bot Service integrated with the basic Slack events, will evaluate it and then proceed with a full bot-framework WebApp if needed.

Regarding Events of APIs generated by hyperledger composer rest server

I am working on a POC and do not want to write any specific transaction processing functions. Created assets, participants etc. and all, so the model is ready. Generated rest api using hyperledger composer-rest-server. The frontend is developed in simple html/javascript.
the problem is that i need events also available whenver i CRUD using composer generated APIs, but not able to figure out how.
IS it that to capture events, we need to create assets using transaction processing functions only and not via composer rest server apis - a little novice kinda question but i am stuck in this thought.
regards,
Sophia
I think you have figured it by now, but here's the answer for the rest of us: you can only generate events from your chaincode, and every event has to be described in your model.

Fireloop.io chat app with nativescript

I loved with loopback. But I am new with fireloop. fireloop working fine with angular 4 webapp client but when I try to use fireloop with nativeapp client (nativescript) its SDK only work for REST API. its Real-time feature not working.
debug logs only show 'Creating a new connection with: '
for example:
Creating a new connection with: http://192.123.1.13:3000
only this just logging in console.
I need some guide to settings up fireloop real-time feature with nativeapp.
sorry for my language.
I think it has to do with the websocket api. I presume for the real time you might actually be using that. Its is related to a question I asked earlier regarding angularfire2 and nativescript.
Here is one response: angular-fire2 is expected to run in a browser/server. Mobile devices have different specifications, more limitations, they work differently. Mobile SDKs are also optimized and made to work with the device's operating system and application lifecycle events. The same does not apply to node.js backends.
angular fire2 and nativescript

Resources