05-08-2019
No Craig,
We are not calling hereNow every 300 ms.
LOL The function in updated() does not even fire, as I described. I don't think you fully understand how Vue.js lifecycle hooks or the JavaScript debounce() function works.
The updated() lifecycle hook in Vue.js only fires when there is a Vue.js event. In this code, that means it on fires on the events I described above.
Even when update() fires, the debounce() function does not fire because it fires only on the trailing edge of 300 ms and that function does not exist (the instance) because the update() lifecycle hook has already exited.
As I said above, that line of code does NOTHING. And in the current version running, it is commented out, since it does nothing.
Regarding PUBNUB.
Frankly, I feel in your replies that you may not fully understand your own API. Perhaps you have not actually every analyzed the XHR calls in DevTools looking at the code under various conditions? It seems you are advsing me from theory (from reading the API docs), not practice (coding and doing the analysis of the XHR calls).
Your API polls presence interval is based on subscribe() (presence set to TRUE). That is not the same as from the pubnub listener. It does not set the presence polling interval.
Yes, the listener listens but the polling is fired every second based in the client when presence is set to TRUE in subscribe.
I have already analyzed these API calls in Chrome Dev tools and it's easy to see what is going on,
You seem to not understand that your API polls presence every second (when it is set in subscribe to TRUE) and there is no way to set that interval in your API.
This generates 100s of thousands of useless transactions because every subscriber is polling the pubnub network every second or so when the subscribe presence TRUE.
I have been over this very carefully in Chome DevTools watching how each flag effects the XHR calls.
Then, again, I could be wrong, LOL... but I have been over this very carefully in Chrome DevTools many times for hours.
4 More Discussions You Might Find Interesting
1. Solaris
Does anyone know of any online live chat discussion groups for Solaris? If so, please let me know... Thanks!
Rob Sandifer (3 Replies)
Discussion started by: RobSand
3 Replies
2. What is on Your Mind?
A number of people have asked me to make some videos, so I just got my first condenser microphone and so I can make some amateurish screen casts. I will try to do better in the future.
A quick overview of PubNub Live Chat @unix.com
The video is best is you set the Quality to HD 1080. The... (0 Replies)
Discussion started by: Neo
0 Replies
3. What is on Your Mind?
Interesting....
I am still working on the kinks for Live Chat here at unix.com using a publish-subscribe API from PubNub. Two days ago while working on it, a new user joined the live chat and asked about how to post a new thread in the forum. Then today, one of the members of the PubNub team... (23 Replies)
Discussion started by: Neo
23 Replies
4. What is on Your Mind?
Update: UserCP Screeching Frog 0.7641 - Changed Live Chat to Live Updates
In this version of the UserCP, I have changed "Live Chat" to "Live Updates" by disabling the ability to post in the "live chat" area and changed the name to "Live Updates"
The reason for this change is that experienced... (6 Replies)
Discussion started by: Neo
6 Replies
LEARN ABOUT MOJAVE
mdimport32
mdimport(1) BSD General Commands Manual mdimport(1)
NAME
mdimport, mdimport32 -- import file hierarchies into the metadata datastore.
SYNOPSIS
mdimport [-VXLArgn] [-d level | category] [-w delay] file | directory
mdimport32 [-VXLArgn] [-d level | category] [-w delay] file | directory
DESCRIPTION
mdimport is used to test Spotlight plug-ins, list the installed plug-ins and schema, and re-index files handled by a plug-in when a new plug-
in is installed.
mdimport32 is used in exactly the same way, but for 32 bit plugins.
The following options are available:
-g plugin Load the plugin at the provided path, ignoring system installed plugins. Useful for testing plugins that have not yet been
installed.
-V Print timing information for this run of mdimport.
-A Print out the list of all of the attributes and their localizations in the current language and exit.
-X Print the schema file and exit
-r Ask the server to reimport files for UTIs claimed by the listed plugin. For example, the following would cause all of the chat
files on the system to be reimported:
mdimport -r /System/Library/Spotlight/Chat.mdimporter
-p Print out performance information gathered during the run.
-L Print the list of installed importers and exit.
-d level Print debugging information. Level can be 1-4.
-n Don't actually set the attributes on the file. Useful for debugging.
-w msecs Wait for the specified interval between scanning files.
NOTES
The -f switch is obsolete in Leopard and beyond.
SEE ALSO
mdfind(1), mdutil(1), mdls(1)
Mac OS X Oct 27, 2004 Mac OS X