Jump to content

How do I push message from server to client?


YangNing
 Share

Recommended Posts

I want send some messages from server to client,not client get from server.

I use the codes:

ASessionList := UniServerModule.SessionManager.Sessions.SessionList.LockList;
      try
        try
          for I := 0 to ASessionList.Count - 1 do
          begin
            TUniGUISession(ASessionList).AddJS('alert("timer message");');
          end;
        except

        end;
      finally
        UniServerModule.SessionManager.Sessions.SessionList.UnlockList;
      end;

 

but it not work.

Link to comment
Share on other sites

 Share

×
×
  • Create New...