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

  • SEARCH
  • Home
  • 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 8581201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:59:27+00:00 2026-06-11T20:59:27+00:00

Actually I’m more interested in the techniques to use to achieve this task more

  • 0

Actually I’m more interested in the techniques to use to achieve this task more than really building a chat system (which is an excellent concrete example). I see 2 parts:

  1. The client needs to get registered somewhere, and we then need a unique ID per client.
  2. The server should be able to send something to the client only from another client.

For the first part, I do not know how to get this unique id. Possibly using the new meteor auth kit ?

For the second part, I thought about building a per-client collection in which one and only one client will have access to, but it sounds heavy and In my opinion not really in the Meteor best practice. I then thought of adding a “from” and to “field” to a Message (see the regular chat example). This would do it but I’m wondering about the no privacy on them. Would a custom publish returning a filtered find do it or it is risky too i.e. would other client get the items too ? Something like:

Meteor.publish("message", function (clientID) {
  return Messages.find({"dest":clientID }, {});
});
  • 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-11T20:59:28+00:00Added an answer on June 11, 2026 at 8:59 pm

    The latest Meteor todos example uses the new auth system to identify private todo entries. I would imagine that you could use the same mechanism to identify the originator and recipient of a private message in a chat like system.

    Of course the filtering of which messages someone sees would need to be filtered on the server side to maintain privacy.

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

Sidebar

Related Questions

Actually this is more than one question, but seems kind related. I appreciate any
Actually i want to use more than one activity at the same time but
Actually these are 3 questions: Which optimization algorithm should I use to optimize the
Actually I am monitoring more than one Tomcat log files using Taillistener API in
Actually it works if i use port 8080 or some values bigger than 1023(i
Actually I am working on this for the last 3 or 4 weeks but
Actually ,i am working on a livechat application its works fine.This application is tabbed
Actually this is my code: echo <pre>; // get current vars $p1 = isset($_GET['p1'])
Actually I am able to use empty listview in my application when I am
Actually i am creating an application in which i want to load images from

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.