示例#1
0
 /**
  * This default implementation will send a pong in response to the received ping. The pong frame
  * will have the same payload as the ping frame.
  *
  * @see org.usfirst.frc.team2503.lib.websocket.WebSocketListener#onWebsocketPing(WebSocket,
  *     FrameData)
  */
 @Override
 public void onWebsocketPing(WebSocket conn, FrameData f) {
   FrameDataImplementation resp = new FrameDataImplementation(f);
   resp.setOptcode(Opcode.PONG);
   conn.sendFrame(resp);
 }