}
// Demo lazy messages
if (Boolean.getBoolean("LAZYCHAT"))
{
final ChannelImpl chat_demo = (ChannelImpl)bayeux.getChannel("/chat/demo",true);
chat_demo.setLazy(true);
chat_demo.setPersistent(true);
Timer timer = new Timer();
timer.schedule(new TimerTask()
{
public void run()
{
chat_demo.publish(null,new JSON.Literal("{\"user\":\"TICK\",\"chat\":\""+new Date()+"\"}"),null);
}
},2000,2000);
}
if (Boolean.getBoolean("STATS"))