Jason response to client

My first attempt with meteor;

I have a device in my network which returns json response when i hit its ip (192.168.1.11) on a web page.

Can meteor get new values and show in client side when there is a change in json response?

If yes please show an example.

Very easily!

  1. Make a mongo collection
  2. On the server do an interval where it HTTP.get()'s the response every few seconds or whatever
  3. Put response in the collection

Client will get the new collection contents automatically because the “database is everywhere” :slight_smile:

1 Like