Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Chat and Cute Web Messeng...
»
Re: Send messages from the server side for CuteMessenger
Re: Send messages from the server side for CuteMessenger
06-11-2009, 10:24 PM
cutechat
Joined on 07-22-2004
Posts 2,332
Re: Send messages from the server side for CuteMessenger
Reply
Quote
Hi,
Please test this code :
CuteChat.ChatPortal portal=CuteChat.AppSystem.Instance.GetCurrentPortal();
lock
(portal)
{
if
(portal.IsMessengerStarted)
{
CuteChat.ChatPlaceUser[] users=portal.Messenger.GetAllUsers();
foreach
(CuteChat.ChatPlaceUser user
in
users)
{
portal.Messenger.Manager.PushSTCMessage(user.Connection,ChatMetaData.ServerMsg_SYS_ALERT_MESSAGE,
null
,
"Hello,World!"
);
}
}
}
Regards,
Terry
View Complete Thread