NetTalk Central

Author Topic: WatchSessionValue - what is the p_watch parameter  (Read 3268 times)

CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
WatchSessionValue - what is the p_watch parameter
« on: August 01, 2016, 02:30:08 PM »
Hi, Bruce

A few weeks ago you showed the WatchSessionValue method in an NT User Group session.   Updating to 9 from 8.71 changed the method prototype, making the p_watch parameter required instead of optional.    What are the value options and what do they do?

Thanks.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: WatchSessionValue - what is the p_watch parameter
« Reply #1 on: August 02, 2016, 02:03:35 AM »
Watching can be done by a human (for debug reasons) or by a page (for WebSocket reasons)

net:WatchDebug
turn watching on for this value to debugview

net:WatchSocket
when value changes send new value to the clients watching this value.

-net:WatchDebug
stop watching this value to debugview

-net:WatchSocket
stop watching this value for web sockets.


CaseyR

  • Sr. Member
  • ****
  • Posts: 448
    • View Profile
    • Email
Re: WatchSessionValue - what is the p_watch parameter
« Reply #2 on: August 02, 2016, 12:29:17 PM »
Great.  Thanks.