Using an external destination
One simple way to read data out of a Quix topic, is to use the prebuilt connector called External destination
.
To use the External destination
connector, step through the following procedure:
-
In the UI click on
Code Samples
in the left-hand sidebar. -
Search for
External destination
. -
Click
Add external destination
. -
Select the input topic that you want to read data from.
-
Give your destination a name.
-
Click
Add external destination
. -
In the Pipeline view click the newly created source and the following is displayed:
-
For this example, select
WebSockets API - JavaScript
. Code is generated for you that uses the Streaming Reader API (SignalR - WebSockets interface). -
Click the
Copy code
button to copy the code to your clipboard.
You can now paste the code into your JavaScript code, for example, your web browser client code. The code reads data from the Quix topic that you configured.
As you can see there are other options such as deploying a code sample.
The code samples generated are meant to provide you with a starting point from which you can build your own solutions. They provide a convenient way to see how the API works.
Next steps
Further information can be found in the Streaming Reader API documentation.