You are not logged in.
Hello everyone,
I am writing some small project client-server and I want use mORMot...
I would be grateful for any tips as I can started my work...
assumptions project:
Client (windows):
1. Send text by the Timer to the server on the another place (VPS windows probably) every 5 minutes.
2. Receive callback from the server.
Server (windows VPS?)
1. Receive messages from Client every 5 minutes and save it to the database for example SQLite.
2. Send callback to the Client (some message).
important information:
I want to have one server and up to 100 clients...
Questions.
1. I started discovering mormot from demo sample - 14 - Interface based services - there is good sample for my project?
2. How is the best way to save messages from Server to database - use firedac or mormot to save to sqlite - which sample show my this possibility?
thanks!
Offline
Sounds a bit like if asynchronous callbacks over interface based services is what you need.
See the "chat" sample.
You have direct writing of all interface-based calls into a mORMot ORM persistence using TServiceContainerServer.SetServiceLog() for service calls.
See http://blog.synopse.info/post/2015/12/1 … r-Services
and http://synopse.info/files/html/Synopse% … l#TITL_183
Offline
Thank you
Offline