Newbie question individual client

44 views
Skip to first unread message

KLRUMPF

unread,
Jun 24, 2012, 3:20:46 PM6/24/12
to nowjs
Good day everybody,

I'm new on this list-

a quick question, how do I address the individual
client to communicate just with one particular
client without the rest seeing it?

Thanks, Karl

Filipe Deschamps

unread,
Jun 24, 2012, 4:53:15 PM6/24/12
to nowjs
I have the same doubt and I will have to accomplish this in a couple
months.

Probably I will create a special group where the name of this group is
something like: (firstuser)(seconduser).now....

Do you know what I mean?

KLRUMPF

unread,
Jun 25, 2012, 7:38:17 AM6/25/12
to no...@googlegroups.com
thanks, you mean setting up a group with just one user
to keep it separate?

N. Morse

unread,
Jun 25, 2012, 9:46:07 AM6/25/12
to no...@googlegroups.com
if you use "this.now" it will be a channel to the one client that called the server side function.

// on the server side...
everyone.now.a_function_that_any_client_can_call = function (argument_sent_to_this_server) {
    var the_client = this.now;
    the_client.a_client_side_function(an_argument_sent_ONLY_to_calling_client);
};
// ...

I hope this helps.
--
Nate Morse
Programmer
SmartCatalog
217 Commercial Street, Suite 406
Portland, ME 04101
800 770-8425
207 774-4769
207 780-0129 fax
www.academiccatalog.com

KLRUMPF

unread,
Jun 25, 2012, 9:57:21 AM6/25/12
to no...@googlegroups.com
cheers


On 25/06/2012 15:46, N. Morse wrote:
> if you use "this.now" it will be a channel to the one client that called
> the server side function.
>
> // on the server side...
> everyone.now.a_function_that_any_client_can_call = function
> (argument_sent_to_this_server) {
> var the_client = this.now;
>
> the_client.a_client_side_function(an_argument_sent_ONLY_to_calling_client);
> };
> // ...
>
> I hope this helps.
>
>
> On Mon, Jun 25, 2012 at 7:38 AM, KLRUMPF <klr...@gmail.com
> <mailto:klr...@gmail.com>> wrote:
>
> thanks, you mean setting up a group with just one user
> to keep it separate?
>
>
>
>
>
> On 24/06/2012 22:53, Filipe Deschamps wrote:
>
> I have the same doubt and I will have to accomplish this in a couple
> months.
>
> Probably I will create a special group where the name of this
> group is
> something like: (firstuser)(seconduser).now...__.
>
> Do you know what I mean?
>
>
>
>
>
> --
> Nate Morse
> Programmer
> SmartCatalog
> 217 Commercial Street, Suite 406
> Portland, ME 04101
> 800 770-8425
> 207 774-4769
> 207 780-0129 fax
> www.academiccatalog.com <http://www.academiccatalog.com>

Reply all
Reply to author
Forward
0 new messages