Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

One-One Chat Application using LCCS

Avatar

Avatar
Validate 1
Level 1
FlexNaveen
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
FlexNaveen
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
FlexNaveen
Level 1

03-06-2011

Hi,

   I want to create a chat application that allow users to select a particular user from the room and chat with that person alone.I tried and succeeded in creating a chat application that works like a group chat, where all the users in the room can see all the messsges.Is there anything to do in room console with permissions,pls explain..

Thanks in advance!!!

View Entire Topic

Avatar

Avatar
Validate 1
Level 1
asciibn
Level 1

Likes

0 likes

Total Posts

90 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
asciibn
Level 1

Likes

0 likes

Total Posts

90 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
View profile
asciibn
Level 1

03-06-2011

Hey,

In your app you need to know what the user ID is. Everyone who connects to the room is assigned an ID by the service.

If you know what the ID is you can send a private message. (make sure the node details have allowPrivateMessages checked off)

Then you can send a message just like a public chat but make sure that there is a receipient with the right id.

Here is how I've been doing it.

var messItem:MessageItem = new MessageItem("PrivateMessage");

    messItem.publisherID =  this.MyID

    messItem.recipientID = userID;

    messItem.collectionName = _msgCollection.sharedID;

    messItem.body = {

note: "closeWindow"

}

    _msgCollection.publishItem(messItem);

so your publishing to a node called private message.

try it out.

...russ