Pushing Data To The Client

Is there any way I can push data to the client? I know I can poll using a timer, but is there a way to maybe set up a socket connection from the client to a server rather than have the client poll.

I’m trying to create a real time monitor for a system. Polling every quarter of a second or so just seems like over processing it a bit.

9 Likes

@Support - please add me on this, I am also wondering if way to push data from server to client as data changed only for reducing the traffic, thanks support and David.

Still no movement on this?

I see 2 distinct possibilities:

  1. a custom component with a second WebSocket with events (most probable to succeed)
  2. Somehow getting access to ANVIL generated code to extend / Fix the communication protocols…

Is anybody Interested in helping?

My recent demo of the local app server does precisely this (and would also work on the anvil cloud hosting).

1 Like