Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
one group per user
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dor Tzur  
View profile  
 More options Jan 10 2012, 8:28 am
From: Dor Tzur <dort...@gmail.com>
Date: Tue, 10 Jan 2012 05:28:40 -0800 (PST)
Local: Tues, Jan 10 2012 8:28 am
Subject: one group per user

I would like to access a user the same way i access a group.
would it be wise to create a new group with unique identifier for each user?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Zhang  
View profile  
 More options Jan 10 2012, 11:03 am
From: Eric Zhang <e...@nowjs.com>
Date: Tue, 10 Jan 2012 08:03:46 -0800
Local: Tues, Jan 10 2012 11:03 am
Subject: Re: [NowJS] one group per user

Hey Dor,

You can use the nowjs.getClient feature to do that much more easily.
http://nowjs.com/jsdoc/symbols/nowjs.html#getClient

Eric

On Tue, Jan 10, 2012 at 5:28 AM, Dor Tzur <dort...@gmail.com> wrote:
> I would like to access a user the same way i access a group.
> would it be wise to create a new group with unique identifier for each
> user?

--
Co-Founder @ Flotype, makers of NowJS

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dor Tzur  
View profile  
 More options Jan 10 2012, 3:48 pm
From: Dor Tzur <dort...@gmail.com>
Date: Tue, 10 Jan 2012 12:48:32 -0800 (PST)
Local: Tues, Jan 10 2012 3:48 pm
Subject: Re: one group per user
I'm aware of the clientId identifier and the nowjs.getClient
However, i'm using a RESTful service to push data from a remote server
to our users through now.js. The server only knows about an external-
ID.
The way i see it i have two options:

A. keep a pairing of an external-ID to a client-ID  on the remote
server or the now.js server, refreshing  the client-ID on each page
change (the external-ID is consistent throughout the session), and
then using the nowjs.getClient method as you suggested.

B. Creating a group with that user's external-ID and adding him to
that group on each page change, essentially creating the pairing that
way, as i implied originally.

I hope i was clear enough with my explanation, I would sincerely like
to hear your thoughts on the subject matter.
Thanks for the quick response.

On Jan 10, 6:03 pm, Eric Zhang <e...@nowjs.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Serlin  
View profile  
 More options Jan 10 2012, 6:57 pm
From: Ian Serlin <i...@ianserlin.com>
Date: Tue, 10 Jan 2012 15:57:38 -0800
Local: Tues, Jan 10 2012 6:57 pm
Subject: Re: [NowJS] Re: one group per user

Are you talking about just keeping track of a user across page refreshes,
like you normally do with a session? You have access to session cookies in
nowjs but you can also take a look at a couple nowjs extensions I'm working
on, and contribute if you want!

https://github.com/ianserlin/now-middleware - let's you hook into the
remote function call sequence and inject callbacks that do things (like
process data) before the server-side function the client was actually
trying to call is executed
https://github.com/ianserlin/now-sessions - uses now-middleware to make
standard http session information to server-side now callbacks via
this.now.session inside your function

Ian Serlin

i...@ianserlin.com
http://u <http://ianserlin.com>seful.io
http://www.linkedin.com/in/ianserlin
213-399-1688
@spiceninja


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dor Tzur  
View profile  
 More options Jan 11 2012, 3:33 am
From: Dor Tzur <dort...@gmail.com>
Date: Wed, 11 Jan 2012 00:33:22 -0800 (PST)
Local: Wed, Jan 11 2012 3:33 am
Subject: Re: one group per user
yeah that should fit the bill.
Is it production ready in your opinion?

On Jan 11, 1:57 am, Ian Serlin <i...@ianserlin.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ian Serlin  
View profile  
 More options Jan 11 2012, 1:37 pm
From: Ian Serlin <i...@ianserlin.com>
Date: Wed, 11 Jan 2012 10:37:45 -0800
Local: Wed, Jan 11 2012 1:37 pm
Subject: Re: [NowJS] Re: one group per user

I wouldn't say it's production ready because it has no tests. Don't have
time to look into doing that today though but I am using these in a project
I'm working on so I don't have to look up the current user's session
information every time I make a call to a server-side function either
through a getClient hash or by having the client pass it's user.id.

Ian Serlin

i...@ianserlin.com
http://u <http://ianserlin.com>seful.io
http://www.linkedin.com/in/ianserlin
213-399-1688
@spiceninja


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »