improved websocket testserver example to include ping/pong

This commit is contained in:
Greg Wilkins 2011-10-03 18:03:57 +11:00
parent fbb4893352
commit c438d7c043
1 changed files with 1 additions and 1 deletions

View File

@ -206,8 +206,8 @@ public class TestServer extends Server
{ {
while(!_latch.await(10,TimeUnit.SECONDS)) while(!_latch.await(10,TimeUnit.SECONDS))
{ {
byte[] data = { (byte)1, (byte) 2, (byte) 3 };
System.err.println("Ping "+connection); System.err.println("Ping "+connection);
byte[] data = { (byte)1, (byte) 2, (byte) 3 };
connection.sendControl(WebSocketConnectionD13.OP_PING,data,0,data.length); connection.sendControl(WebSocketConnectionD13.OP_PING,data,0,data.length);
} }
} }