Skip to content
garrettlancaster edited this page Sep 27, 2013 · 6 revisions

This is the expected data-format for client-side communication

ChatUser

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
}

ChatMessage

{
  UserFromId: 12
  UserToId: 14
  Message: "Hey there"
  ClientGuid: "asdf-asdf-asdf-asdf"
}