// Connect
System.out.println("WebSocket Client connecting");
ChannelFuture future =
bootstrap.connect(
new InetSocketAddress(uri.getHost(), uri.getPort()));
future.syncUninterruptibly();
ch = future.getChannel();
handshaker.handshake(ch).syncUninterruptibly();
// Send 10 messages and wait for responses