0
我已閱讀部分跟蹤客戶端連接和斷開連接的Channel API for Java文檔。App Engine通道API連接和斷開
它具有以下代碼:
// In the handler for _ah/channel/connected/
ChannelService channelService = ChannelServiceFactory.getChannelService();
ChannelPresence presence = channelService.parsePresence(req);
我怎麼會創造_ah/channel/connected/
或_ah/channel/disconnected
處理程序?我想在用戶斷開連接時通知或警告已連接的用戶。