On Wed, Feb 3, 2010 at 8:39 PM, Emmanuel LŽcharny <[email protected]> wrote: > Muhammad Ichsan a écrit : >> > Just move the code outside of this event, it will work perfectly. Something > like : > > ... > ConnectFuture cf = trying.createClient().connect(address); > cf.awaitUninterruptibly(); > // Send many messages > for (int i = 0; i < 20; i++) {
Great! it works. Thanks. But, I wonder the purpose of session in sessionOpened. Also, what about if the server sends the messages first? How can I get the session? > ... > > produces : > > --0 > Got from client: Client.message.0 > --1 > Got from client: Client.message.1 > --2 > ... > -- ~The best men are men who benefit to others http://michsan.web.id Yang berkualitas memang beda rasanya! http://rizqi-cookies.com
