Sponsored Content
The Lounge What is on Your Mind? PubNub Live Chat Beta Testing Post 303034935 by pubnubcraig on Thursday 9th of May 2019 12:57:21 PM
Old 05-09-2019
Why can't you just use the status callback's PNConnectedCategory as the place where you call hereNow? This event happens when you subscribe to a channel(s).

I thought I mentioned that in past replies but I probably am just confusing with another thread that I mentioned that on recently.

--- Post updated at 04:53 PM ---

Do I just set the initial presenceTimeout > 300, say 600 or maybe even 1200 seconds?

Sorry, missed this question.
No need to set any special presenceTimeout for an individual. If they are subscribed to a channel(s), they will remain subscribed and therefore present on the channel until they unsubscribe or network connection fail.

Not sure if that's what you mean, so clarify if I am not understanding the question/requirement.

Cheers
Craig

--- Post updated at 04:56 PM ---

Hmmm, I just replied to the other question you had (that I missed) and it didn't post up here.

Quote:
What's the best way to keep the user's chat session alive...
Nothing you need to set special for an individual user. Just being subscribed to the channel will keep them "active/alive" or present on the channel. Perhaps I am not understanding the actual requirement or some disconnect/timeout issue you are having when a user is not interacting in the chat?

--- Post updated at 04:57 PM ---

Haha - I see that my first attempt finally posted up.
This User Gave Thanks to pubnubcraig For This Post:
 

4 More Discussions You Might Find Interesting

1. Solaris

Live Chat For 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 Quick Video Overview of PubNub Live Chat @UNIX.com (version 0.7614)

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?

Live Chat (Alpha) in UserCP SF 0.7517

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

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
set_color(1)							       fish							      set_color(1)

NAME
set_color - set_color - set the terminal color set_color - set the terminal color Synopsis set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR] Description Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple, cyan, white and normal. o -b, --background Set the background color o -c, --print-colors Prints a list of all valid color names o -h, --help Display help message and exit o -o, --bold Set bold or extra bright mode o -u, --underline Set underlined mode o -v, --version Display version and exit Calling set_color normal will set the terminal color to whatever is the default color of the terminal. Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey font color, while set_color --bold white will result in a white font color. Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator. set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of ncurses and recompile fish against it in order to fix this issue. Version 1.23.1 Sun Jan 8 2012 set_color(1)
All times are GMT -4. The time now is 01:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy