Hello!
It's hard for me to explain but I give a try and hope you understand.
My Map Web Application realizes a cometd client server communication.
Client:
dojox.cometd.init("./cometd");
dojox.cometd.subscribe("/test", sample, "publishHandler");
...