05-08-2019
short polling the hereNow?
Neo -
If I understand, you are calling hereNow every 300ms, which is a lot.
Assuming that is the case, you should only call hereNow upon successful subscribe to a channel (in the status callback for PNConnectedCategory).
When you subscribe to a channel(s), subscribe withPresence:true to get the realtime updates for others' join, leave, timeout and state-change.
Not sure what the presenceInterval property would do in the subscribe. I think you are assuming that presence is polling for changes. But it is actually receiving new presence events (in the addListener's presence callback) just like you receive published messages in the message callback. withPresence:true actually just adds an additional channel for each channel you subscribe to. If you subscribe to channel abc then withPresence:true will also add channel abc-pnpres.
Hope that provides some insights.
Cheers
Craig
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 DEBIAN
nagzillac
NAGZILLAC(1) General Commands Manual NAGZILLAC(1)
NAME
nagzillac - jabber relay bot client
SYNOPSIS
nagzillac type^JID^message
DESCRIPTION
This manual page documents briefly the nagzillac command.
nagzillac is the client for nagzilla that takes the data you hand it as argument and sends it over to the nagzilla daemon that will send
the message along.
OPTIONS
nagzillac only takes one options that consists of three arguments. They are seperated by the carret character(`^'), although the last argu-
ment may contain carrets without any troubles. Here is an explenation of the different parts:
type This is the type of the message. It can be either room (which will send the message to a jabber conference room) or chat (target
should be a jabber ID).
JID This is the target for the message. If you choose room type it has to be a conference room name or complete ID. A single room with-
out any @ in it will get sent to the configured conference server. If you choose the chat type the JID has to be the jabber ID of
the user to receive the message, either just the user part which will get added the jabber server as domain part, or a full jabber
ID.
message
The final part is the message that will get sent. At the moment it will be put into the body as plain text. Please notice that you
will have to quote or escape special characters in the message like white space.
FILES
/etc/nagzillac/nagzillac.cfg
The configuration file for the nagzilla client. Please see the comments in the file for informations on what to tweak.
EXAMPLE
The following sends a chat message to the rhonda user on the default server:
nagzillac "chat^rhonda^hi there"
This will send a message to a conference room on a different server:
nagzillac "room^monitor@jabber.doma.in^alert - do something"
SEE ALSO
nagzillad(1).
AUTHOR
nagzillac was written by Bill Mathews.
This manual page was written by Gerfried Fuchs <rhonda@debian.at> for the Debian project (and may be used by others).
2009-06-03 NAGZILLAC(1)