try {
wsFrame.onDataAvailable();
} catch (WsIOException ws) {
wsProtocolHandler.close(ws.getCloseReason());
} catch (EOFException eof) {
CloseReason cr = new CloseReason(
CloseCodes.CLOSED_ABNORMALLY, eof.getMessage());
wsProtocolHandler.close(cr);
} catch (IOException ioe) {
onError(ioe);
CloseReason cr = new CloseReason(
CloseCodes.CLOSED_ABNORMALLY, ioe.getMessage());
wsProtocolHandler.close(cr);
}
}