sendDisconnectWithReason(httpServletResponse.getOutputStream(),
"There is no queue associated with this session.");
return;
}
queue.heartBeat();
httpServletResponse.setHeader("Cache-Control", "no-cache");
httpServletResponse.setContentType("application/json");
queue.poll(wait, httpServletResponse.getOutputStream());