Web Request and Websocket connection
Posted: 10 Jan 2019, 13:32
As Ventuz is very good of displaying realtime data you often connect to "realtime" servers and databases.
In many cases these servers provide the data via Websocket connections or some sort of http web request (e.g. rest).
An interface could look like this
URL and Post data as input strings
(maybe a switch/enum to define content Type of Post data (json, xml, etc...)
And a method to start the async request
The response as string output along with some debugging information
(maybe add http response code like: 200 - OK; 500 internal server error; ...)
It would be nice to have nodes to use these protocols instead of scripts so you don't need external GAC resources and compile every script at every start...
regards, Eric
In many cases these servers provide the data via Websocket connections or some sort of http web request (e.g. rest).
An interface could look like this
URL and Post data as input strings
(maybe a switch/enum to define content Type of Post data (json, xml, etc...)
And a method to start the async request
The response as string output along with some debugging information
(maybe add http response code like: 200 - OK; 500 internal server error; ...)
It would be nice to have nodes to use these protocols instead of scripts so you don't need external GAC resources and compile every script at every start...
regards, Eric