Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Cute Chat and Cute Web Messeng...
»
Send messages from the server side for CuteMessenger
Send messages from the server side for CuteMessenger
Last post 05-10-2011, 8:19 PM by
Kenneth
. 4 replies.
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
06-10-2009, 3:08 PM
52971
Reivax
Joined on 06-10-2009
Posts 8
Send messages from the server side for CuteMessenger
Reply
Quote
Is possible to send messages from the server side to some specific Messenger, I can not find in the Methods of CuteChat one way to do it, this could be helpful to send notifications from the system to the users.
06-11-2009, 10:24 PM
53047
in reply to
52971
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
06-12-2009, 4:50 PM
53102
in reply to
53047
Reivax
Joined on 06-10-2009
Posts 8
Re: Send messages from the server side for CuteMessenger
Reply
Quote
Thanks Terry, That's what I was looking for.
05-10-2011, 3:43 PM
67525
in reply to
53102
soyemil
Joined on 08-20-2010
Posts 18
Re: Send messages from the server side for CuteMessenger
Reply
Quote
where is ChatMetaData declared?
05-10-2011, 8:19 PM
67533
in reply to
67525
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: Send messages from the server side for CuteMessenger
Reply
Quote
Hi soyemil,
Namespace CuteChat
CuteChat.ChatMetaData.ServerMsg_SYS_ALERT_MESSAGE
Regards,
ken