0

I have tried the dwr sample chat app, I think the code below sends data to all connected clients.

Collection pages = wctx.getScriptSessionsByPage(currentPage);
    for (Iterator it = pages.iterator(); it.hasNext();)
    {
        ScriptSession otherSession = (ScriptSession) it.next();
        otherSession.addScript(script);
    }

If i am wright, how could I send the data to a particular client only, using JSESSIONID?? A simple example may hel.

Thanks and regards

Ajinkya
  • 22,324
  • 33
  • 110
  • 161
user1573319
  • 69
  • 3
  • 10

0 Answers0