pubnub / chrome-console

PubNub Chrome Console
https://chrome.google.com/webstore/detail/pubnub-console/oddliknomcdjdaabjmcppcedgdcklbpl
2 stars 5 forks source link

here_now & history feature on plugin don't work properly on page with multiple pubnub init #10

Open keyosk opened 9 years ago

keyosk commented 9 years ago

If you go to pubnub.com, there is an init against sub_key : sub-c-726c7474-9540-11e3-9615-02ee2ddab7fe

If I go to pubnub.com/console and subscribe to a test channel on the demo/demo key pair, publish a message, and then click the here_now or history buttons, instead of issuing these against demo, it is issued against the first sub_key seen on the page, which happens to be "sub-c-726c7474-9540-11e3-9615-02ee2ddab7fe"

The end effect is that there appears to be no uuids and no history.

keyosk commented 9 years ago

The following commit addresses this issue, as well as fixes the fitler by message type for history / presence : https://github.com/pubnub/chrome-console/commit/c21e887b40d41fad9fa04ccdf1301bf9a18bce97