コード例 #1
0
 public void disconnect() {
   boolean connected = _bayeux.removeServerSession(this, false);
   if (connected) {
     ServerMessage.Mutable message = _bayeux.newMessage();
     message.setChannel(Channel.META_DISCONNECT);
     message.setSuccessful(true);
     deliver(this, message);
     flush();
   }
 }
コード例 #2
0
 public void deliver(Session sender, String channelId, Object data) {
   ServerMessage.Mutable message = _bayeux.newMessage();
   message.setChannel(channelId);
   message.setData(data);
   deliver(sender, message);
 }