Advertisement
Guest User

Grizzly WebSocket Snippet

a guest
Jan 9th, 2012
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.30 KB | None | 0 0
  1. // My WebSocketApplication subclass
  2.  
  3. @Override
  4. public void onPong(WebSocket socket, byte[] bytes) {
  5.     System.out.println("*** *** onPong() *** ***");
  6.     super.onPong(socket, bytes);
  7. }
  8.  
  9. // My client's send invocation
  10. webSocket.send(new DataFrame(new PongFrameType(), new byte[0], true).getBytes());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement