1

我正在使用 QuickBlox 简单聊天来了解它是如何工作的。

在演示 ex.2 中,用户首先是 USER1,其他用户是 USER2。

一段时间后,USER1 消息显示在表格中,其中 USER2 消息和 USER2 消息的一侧显示在 USER1 消息的一侧。

像这样获得对服务器的响应

Request finished, response: 
RestResponse:
------
<QBASIHTTPRequest: 0xa288c00>
headers:{
    "Access-Control-Allow-Origin" = "*";
    "Cache-Control" = "no-cache";
    Connection = Close;
    "Content-Length" = 106;
    "Content-Type" = "application/xml; charset=utf-8";
    Date = "Sat, 05 Oct 2013 05:54:05 GMT";
    "QB-Token-ExpirationDate" = "2013-10-05 07:53:46 UTC";
    "QuickBlox-REST-API-Version" = "0.1.1";
    Server = "nginx/1.0.15";
    Status = "422 Unprocessable Entity";
    "X-Rack-Cache" = "invalidate, pass";
    "X-Request-Id" = c70e07ac0a8571253773cde59c23676c;
    "X-Runtime" = "0.223264";
    "X-UA-Compatible" = "IE=Edge,chrome=1";
}
body:<?xml version="1.0" encoding="UTF-8"?>
<errors>
  <error>No one can receive the message</error>
</errors>

error:
4

0 回答 0