Jump to content


Photo

How to send Messages to different sessions

Session

  • Please log in to reply
1 reply to this topic

#1 MOGSY

MOGSY

    Member

  • uniGUI Subscriber
  • PipPip
  • 36 posts

Posted 19 February 2018 - 04:37 AM

Hi

 

To stop sessions keep polling to get fresh data, how can one push messages to different session, is WebSocket is the only way to push messages to sessions?

 

If a query is kept in ServerModule will that query result be shared by all sessions?

 

Regards

 


  • 0

#2 Oliver Morsch

Oliver Morsch

    Advanced Member

  • uniGUI Subscriber
  • PipPipPipPip
  • 274 posts
  • LocationGermany

Posted 19 February 2018 - 10:14 AM

To stop sessions keep polling to get fresh data, how can one push messages to different session, is WebSocket is the only way to push messages to sessions?

 

WebSocket is the best/modern way. But you can also use LongPolling.

 

If a query is kept in ServerModule will that query result be shared by all sessions?

No.


  • 0





Also tagged with one or more of these keywords: Session

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users