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
에 대한 처리기를 만드는 것 어떻게
? 사용자 연결이 끊어졌을 때 연결된 사용자에게 알리거나 경고하고 싶습니다.