Using Vesndata.net (VDN) Internet data-driven function, we realize the function of PB-connected Internet database. In the process of Internet development, we often have some news or data want to be able to notify each client immediately, a more popular technology is the message push, now PB can use VDN to implement the message push.
1, first put a Uo_vdncore component in the window, set the URL, Deskey, SN properties
2, add a login button to achieve the message online login. Because Vdncore has encapsulated these features, the implementation is simple. Here we can also obtain the IP address and unique identity of the client returned from the server side, and get a list of online users.
3, write the following code to send a message to the specified user, in the second step we have obtained the online user list and share it to the dw_1, of course, can also be directly used Uo_vdn.ds_online to operate.
4. Write the following code push message to all online users
5, compile a program, while landing two or more users, and then PB can realize the push of the message, very simple.