Vue.js Steam Chat


Login or Register to Reply

 
Thread Tools Search this Thread
# 15  
Today, I'm back in a tech session with PubSub about loading message history when someone starts the session / joins the page.

Quote:
..... and so when I console log time, I can see that the channel saves all the prior history after the pages is loaded or reloaded; but if I reload the page, the history is not loaded from the server, as if the PubNub Storage API is not persistent across sessions, because the expected behavior is when someone opens their app and this page, they will see the chat / message history on that channel; so there seems to be no "autoload' really happening when the session starts.

I have just console logged the above, and of course the this.ch1 array grows with each message, but that information is gone when the page is reloaded, so there is really no history at all coming from the PubSub API when someone joins the channel. The only "history" is in a session which has already started, and this is not useful at all, because we need for users to see the message history on the channel when they first join the channel.
# 16  
UserCP Screeching Frog 0.7514

I was able to get message history working within a vue-pubnub project sans any help from PubNub.

Basically, message / chat history is working in version 0.7514

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

Now, I need to write some hybrid code to show the number of members in the chat, their names, etc. and add more features.

The PubNub folks said doing this in Vue.js is "pioneering" work and few have done it; so I guess after months at it, I'm finally getting caught up to the state-of-the-art (or getting closer),
# 17  
I'm moving on to another thread on this topic.

REF:

Code:
https://www.unix.com/what-is-on-your-mind-/281750-live-chat-alpha-usercp-sf-0-7517-a-new-post.html

# 18  
Neo - thanks for working with us at PubNub Support. We are actively working on updating the Vue SDK Docs with at least an "OUTDATED" message in the short term and long term, a new Vue SDK that lives up to the JavaScript SDK. Not sure how that Vue SDK got released in that condition but again, thanks for vetting it and reporting back to us.

We'll (SDK engineer manager and I) be in touch with more very soon.
Cheers
Craig
This User Gave Thanks to pubnubcraig For This Post:
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Documenting Installation Problem with vue-beautiful-chat
Neo
REF: https://github.com/mattmezza/vue-beautiful-chat $ git clone https://github.com/mattmezza/vue-beautiful-chat.git Cloning into 'vue-beautiful-chat'... remote: Enumerating objects: 534, done. remote: Total 534 (delta 0), reused 0 (delta 0), pack-reused 534 Receiving objects: 100%...... Web Development
2
Web Development
Vue JS 2 Tutorial by The Net Ninja: A Recommended Vue.js Video Tutorial Series
Neo
A number of people have asked me how to get started with Vue.js and my reply before today was to Google "Vue.js". That has changed and my recommendation to anyone who wants to learn the fastest growing, easiest to learn and use Vue.js web dev framework is to watch this video tutorial series: ...... Web Development
0
Web Development
Simple Vue.js Component to Redirect to External Web Page Using Vue Router
Neo
Vue Router has some quirks and on of the quirks is that it is not reliable when adding external links using the vue-router library. After struggling with many solutions, I have found that creating a simple Vue.js component like this one seems to work the best (so far): Component Example: ...... Web Development
0
Web Development