On Sat, Nov 15, 2014 at 6:35 AM, Микола Патько
<[email protected]> wrote:
> How do I get all messages from the channel?
> When user enters, that he could see all messages from the channel
The user's client can subscribe to the channel, with a specified
function being invoked for each new message sent to that channel:
subs[i] = client.subscribe('/WEnotes/theChannel', function(msg) {
newPost(i, msg);
});
If you mean receive messages sent to the channel before he connected,
that is outside the scope of Faye. You will need to implement another
mechanism for retrieving the historical messages. (I use CouchDB with
views that copy my channels.)
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/CAM5%2BEqgVeviHvGe-mRTafvMkfErzVpxjjaQYE5YiGXSuLDvnRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.