using RecvMessageCallback = std::function< void(const TcpConnectionPtr &, MsgBuffer *)>
TcpConnectionPtr->getRecvBuffer()to read and/or write?
Where do I put code for dragon to do some custom automation for the following? :
Client from website presses a button to read some data from the local PostgreSQL database.
Dragon will listen for requests using websockets.
Then dragon will parse the JSON data that was requested from client.
Dragon needs to know what this parsed JSON data request means.
Parsed JSON data says to fetch some data from local PostgreSQL database.
After dragon fetches data from local PostgreSQL database, dragon needs to send this fetched data to the client using websocket.
The above can be easily done using node.js But how can the above objectives be done using dragon?
Are there any tutorials other than WiKi and docsforge?
I find WiKi and docsforge a bit too advanced and complicated for a beginner to understand.