Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8989431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:15:26+00:00 2026-06-15T22:15:26+00:00

I have chat messages displayed like this: {{#each msg}} {{> chatMsg}} {{/each}} When users

  • 0

I have chat messages displayed like this:

  {{#each msg}}
    {{> chatMsg}}
  {{/each}}

When users enter the chat I add a document to the collection with user joins the chat. When a user rapidly reenters and leaves the chat I don’t want to duplicate user joins the chat over and over again. I want to display something like user joins the chat x3.

Is there a way to do this on the client side by hooking into renderList? I know I can change the doc on the server side but it seems unnecessarily intensive.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T22:15:28+00:00Added an answer on June 15, 2026 at 10:15 pm

    The easiest way to get there from here is to write a custom publisher. Instead of just returning a cursor from your publish function, call observe() on your cursor within the publish function, and do the appropriate set(), unset(), and flush() calls within that, that do the appropriate multiplying a previous message instead of adding a new one. You can find the relevant documentation at the meteor documentation for Meteor.publish

    To get a basis from comparison, you can look at the current code to publish a Cursor, which is in packages/mongo-livedata/mongo_driver.js, in Cursor.prototype._publishCursor.

    Note: My answer here is for Meteor 0.5.2. The API for custom publishers is going to be changing in a future release of Meteor, and there will be different functions you have to call than set() unset() and flush()

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed a Flash based chat client that displays messages posted by users
I'm writing a chat and i would like to have the incoming messages on
okay, i'm setting up a multi-user chat system. i have a messages table, that
i'm building an android application which have a chat. in this chat i each
I basically have a form that you input chat messages into. It looks like
i have this template code: <script type=text/javascript> $(function(){ //submit new messages when the user
I have a chat program that displays I list of online users. The message
All the in-browser chat rooms I have seen so far append messages into the
I have a chat-like application which uses Grizzly Comet in Glassfish and the HTTP
I have a set of commands like: .kick .unban .ban .unvouch .vouch .add .del

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.