Live Chat (Alpha) in UserCP SF 0.7517


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
The Lounge What is on Your Mind? Live Chat (Alpha) in UserCP SF 0.7517
# 8  
We should just jump on a conf call and discuss your plans and talk about those best practices specific to your requirements.
# 9  
Quote:
Originally Posted by pubnubcraig
We should just jump on a conf call and discuss your plans and talk about those best practices specific to your requirements.
Sounds good.

Get me your mobile number and/or What's App ID (privately if your prefer) and let me know what time zone you are in.

Me: GMT+7

I can Skype or What's App you Smilie

PS: I'm normally available 997 in GMT+7 Smilie
# 10  
Also, Craig...

Here is some "high level" background of where we are planning on going with this:

Status of Migration of Moderation Systems
# 11  
UserCP Screeching Frog 0.7533
  • "Fixed" REST'ful API race condition (bandaid) to PubNub API by wrapping a two second delay in the Vue.js mount() lifecycle hook around the .

Now the chat window shows "OK" but there is an occasion AJAX race condition on the addListener() in the same lifecycle hook.

Progress... but not yet fully "race condition error free"..... but it's much better for sure. In fact, I could call this "good enough" for now and move on to other issues in the venture Smilie
# 12  
Hey Craig,

FYI, I think before I move much further forward in this venture, I'm going to create a new Vue component where I remove all vue-pubnub SDK references and rewrite all API calls with the PubNub Node.js V4 SDK 4.23.0.

I am having issues with AJAX race conditions and I'm hoping having all the methods using a very clean pubnub instance built with node.js will solve the problem I am having going back-and-forth between the "OUTDATED" Vue.js docs and the Javascript SDK docs.

Today, I worked for hours and solved some race conditions using JS timers to delay some methods, but need to move to a promise-based callback design where the AJAX callbacks are clearly defined so I can gain more control over the AJAX timing issues. Using the vue-pubnub component lib seems to not really give me clear promise-based callbacks to build a "race condition free" component in the Vue lifecycle.
# 13  
Dear Craig,

I am impressed with PubNub Node.js V4 SDK 4.23.0.

Have removed all references to vue-pubnub on this new component, and it seems to be running much better. Just started testing and so far there are no race conditions and it appears to run "clean". I may be able to remove the 2000 ms "bandaid" delay in the AJAX call. Time will tell So far so good.

UserCP Screeching Frog 0.7539

Code:
https://www.unix.com/usercp/#/livechat

Everything is working smoothly and I can start adding the objects I want from herenow() and refining the implementation.

Now, I am a happy PubNub camper!

That made a huge difference moving off the vue-pubnub lib and on to the standard node.js SDK. Yea!
# 14  
UserCP Screeching Frog 0.7542

Have fixed some bugs and am very excited and positive about the PubNub Javascript node.js SDK.

However, I have created another bug related to guest usernames and uuids.

UserCP Screeching Frog 0.7544

Increased vue.js lifecycle hook delay to 2 seconds from 1 second, and the pubnub race condition errors seems error free.

More testing....

UserCP Screeching Frog 0.7548
  • Decreased vue.js lifecycle hook delay to 1 seconds from 1 second.
  • Commented out "troublesome and not required" status code (race condition).
  • Added users to the status message below chat.

Seems to run "OK" now, for such a simple app. I think time to take a step back and decide on what direction to go with PubNub here.
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #573
Difficulty: Medium
PHP does not allow you to use arrays as both function parameters and as return types.
True or False?

5 More Discussions You Might Find Interesting

1. 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

2. What is on Your Mind?

PubNub Live Chat Beta Testing

Dear All, We are now beta testing our future "Live Chat" area using PubNub technology. https://www.unix.com/usercp/#/livechat This purpose of this testing is to test the core system, in general, and to see how many, if any, bugs crawl out of the woodwork. This "Live Chat" is not the... (48 Replies)
Discussion started by: Neo
48 Replies

3. 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

4. What is on Your Mind?

New UserCP Update Profile Image Page (UserCP Screeching Frog 0.7485)

Update! UserCP Screeching Frog 0.7485 Created a new page for uploaded a profile picture (profile pictures are different than avatar pictures). https://www.unix.com/usercp/#/settings/other https://www.unix.com/members/1-albums225-picture1158.png ... (0 Replies)
Discussion started by: Neo
0 Replies

5. 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

Featured Tech Videos