You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
This application keeps requesting messages from the database forever #19
Hi @4ni1 good question. Can you provide details about "keep making lookups" ? This may be our server-ping which is sending a signal to the client in a test to see if the connection is still active.
Hi @4ni1, exactly, it works that way because of worker() in coffee. This example shows async subscribe: https://github.com/pubnub/ruby/blob/master/examples/pubnub_livestream/config/initializers/pubnub.rb and worker still is asking if there're any new messages. It (asking ror server) could be implemented better way, but that's not the point of that example app. I kept it as simple as possible, just to show async subscribe in pubnub.
Why does this app keep making lookup for messages instead of triggering the lookup when needed like on an event after adding a new chat?