forked from darlekc/chatjs
-
Notifications
You must be signed in to change notification settings - Fork 0
JSON Data Format
garrettlancaster edited this page Sep 27, 2013
·
6 revisions
This is the expected data-format for client-side communication
Data format for the adapter method getUserInfo
{
// user id
Id: 12,
// user name
Name: 'Edward',
// user profile url (not currently being used)
Url: 'www.myapp.com/users/12/edward',
// user profile picture url
ProfilePictureUrl: 'http://static.foo.com/images/edward.png',
// user status (0 for offline, 1 for online)
Status: 1
}
{
UserFromId: 12
UserToId: 14
Message: "Hey there"
ClientGuid: "asdf-asdf-asdf-asdf"
}