Channels

Fran=?ISO-8859-1?B?5w==?=ois Van Lerberghe frvanlerberghe at gmail.com
Sat Apr 12 02:36:49 CDT 2014


May we imagine a Vserver sending to all VClients a notification about a
record change ?

Something like :
"Hey, dear Vclient, table "myTableName" has updated its record RecID = 234.
Please update your User Interface..."


François Van Lerberghe
Rue Thier Monty, 15 A
4570 Marchin
+32 (0)85 25 08 25


le 12/04/14 9:04, Ivan Smahin <ivan_smahin at paradigmasoft.com> a écrit :

> It is about asynchronous notification system. Available both - locally and in
> vClient-vServer environments.
> There are "channels" to send/receive messages. You can send message ( any
> string ) to the channel and you can subscribe to receive messages from the
> channel. Both - API and SQL way are available. To receive notifications from
> some channel you should subscribe it first and wait for the messages - it
> could be another thread or just checking for the messages periodically from
> the main thread.
> 
> How to use it - depends on your needs. It could be:
> - simple chat system, say, to receive notifications from admins;
> - async app-specific channels for specific events;
> ...



More information about the Valentina mailing list