Re: Send messages from the server side for CuteMessenger

  •  06-11-2009, 10:24 PM

    Re: Send messages from the server side for CuteMessenger

    Hi,
     
    Please test this code :
     
    1. CuteChat.ChatPortal portal=CuteChat.AppSystem.Instance.GetCurrentPortal();   
    2. lock(portal)   
    3. {   
    4.     if(portal.IsMessengerStarted)   
    5.     {   
    6.         CuteChat.ChatPlaceUser[] users=portal.Messenger.GetAllUsers();   
    7.         foreach(CuteChat.ChatPlaceUser user in users)   
    8.         {   
    9.             portal.Messenger.Manager.PushSTCMessage(user.Connection,ChatMetaData.ServerMsg_SYS_ALERT_MESSAGE,null,"Hello,World!");   
    10.         }   
    11.     }   
    12. }  

    Regards,
    Terry
     
View Complete Thread