My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
Presence  
Sending and receiving presence and moods.
Command
Updated Nov 7, 2011

Client to Server - Presence

Command: 32

Format:

[presence, '']
The use of the last string is currently unknown.

Possible values for presence

0 Offline
1 Available
2 Away
3 Chatting - presented as available
4 Busy
5 Extended Away - presented as away

Client to Server - Mood

Command: 41

Format:

[mood]

A response code of 0 is returned for success.

Possible values for mood

0 None
1 Angry
2 Excited
3 Grumpy
4 Happy
5 In love
6 Invicible
7 Sad
8 Hot
9 Sick
10 Sleepy

A response code of 0 is returned for success.

Server to Client

This is used both sending the initial contact list, when new contacts are added, and when the presence or mood of contacts change.

Command: 3

Format:

[[group, user-id, name, presence, user-type, mood], [group, user-id, name, presence, user-type, mood], []]
Any number of users may occur.

Known user types

0 Normal user
1 Jabber user
2 Service
13 Info contact
14 Room

Powered by Google Project Hosting