In this example, the server responds to all calls with an updated itemlist.
在本示例中,服务器通过一个更新的项目列表响应所有调用。
2
One way to reflect this change is to let the client perform an extra request to get the itemlist every time it makes a change in the database.
反映此更改的方法之一就是每次在数据库中进行更改时使客户机执行一个额外的请求,来获得项目列表。
3
The next step in this example is not only to send back the updated itemlist, but also to provide status information letting the client know what the server did as shown in the following code listing.