FAQ
Hi, I use faye (Node.js) for creation messaging.
How do I get all messages from the channel?
When user enters, that he could see all messages from the channel

--
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 nodejs+unsubscribe@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/f0c99c96-aca3-458f-9f50-09585c9e09dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

  • Jim Tittsler at Nov 15, 2014 at 12:33 am

    On Sat, Nov 15, 2014 at 6:35 AM, Микола Патько 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 nodejs+unsubscribe@googlegroups.com.
    To post to this group, send email to nodejs@googlegroups.com.
    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.
  • Микола Патько at Nov 15, 2014 at 1:47 pm
    Can you give me the example of code CouchDB with retrieving the historical
    messages ??? Or info links?

    Субота, 15 листопада 2014 р. 02:34:00 UTC+2 користувач Jim Tittsler написав:
    On Sat, Nov 15, 2014 at 6:35 AM, Микола Патько
    <mykola.f...@gmail.com <javascript:>> 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 nodejs+unsubscribe@googlegroups.com.
    To post to this group, send email to nodejs@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/58aec93a-e5e3-4cba-91e4-0389943fcd10%40googlegroups.com.
    For more options, visit https://groups.google.com/d/optout.
  • Jim Tittsler at Nov 16, 2014 at 12:45 am

    On Sat, Nov 15, 2014 at 4:37 PM, Микола Патько wrote:
    Can you give me the example of code CouchDB with retrieving the historical
    messages ??? Or info links?
    You could store the messages anywhere and allow the clients to
    retrieve them (or play them back on connection).

    I only mentioned CouchDB as one possible solution since its append
    only style fits well with the history of messages. WikiEducator's
    WEnotes client is built on this scheme.
      https://gitorious.org/wikieducator/wenotes/source/e7a7bdc3b5d535a44630b58cc49e6203ad071d63:WEnotes.js#L466

    --
    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 nodejs+unsubscribe@googlegroups.com.
    To post to this group, send email to nodejs@googlegroups.com.
    To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CAM5%2BEqhWjtULJCn_7uA6gxA%3DOhT%2BNixkfbOwQSJwpAGR%3DV0ijQ%40mail.gmail.com.
    For more options, visit https://groups.google.com/d/optout.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupnodejs @
categoriesnodejs
postedNov 14, '14 at 9:36p
activeNov 16, '14 at 12:45a
posts4
users2
websitenodejs.org
irc#node.js

People

Translate

site design / logo © 2022 Grokbase