NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: CaseyR on August 01, 2016, 02:30:08 PM

Title: WatchSessionValue - what is the p_watch parameter
Post by: CaseyR 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.
Title: Re: WatchSessionValue - what is the p_watch parameter
Post by: Bruce 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.

Title: Re: WatchSessionValue - what is the p_watch parameter
Post by: CaseyR on August 02, 2016, 12:29:17 PM
Great.  Thanks.