After performing the watchSub op on a Haystack server is it necessary to perform the watchPoll op from the client at some interval to check for updates? In other words, will the Haystack server send unsolicited updates to the client? The documentation makes references to the obix watch operation, but I thought obix utilized websockets for asynchronous communication, which I don't believe is supported by Haystack.
Thanks in advance.
Brian FrankWed 13 Apr 2016
Hi Cory, yes it is necessary to perform the watchPoll on a periodic basis. When the watch is created it will have a lease time in the grid meta that indicates how often you must poll. If you do not poll within the lease time then the server will free the watch.
No we do not have a Haystack binding for websockets currently.
Cory Perdue Tue 12 Apr 2016
After performing the watchSub op on a Haystack server is it necessary to perform the watchPoll op from the client at some interval to check for updates? In other words, will the Haystack server send unsolicited updates to the client? The documentation makes references to the obix watch operation, but I thought obix utilized websockets for asynchronous communication, which I don't believe is supported by Haystack.
Thanks in advance.
Brian Frank Wed 13 Apr 2016
Hi Cory, yes it is necessary to perform the watchPoll on a periodic basis. When the watch is created it will have a lease time in the grid meta that indicates how often you must poll. If you do not poll within the lease time then the server will free the watch.
No we do not have a Haystack binding for websockets currently.