/** Incoming Errors from Parser */ @Override public void incomingError(Throwable t) { if (connection.getIOState().isInputAvailable()) { // Forward Errors to User WebSocket Object websocket.incomingError(t); } }
/** Incoming Errors from Parser */ @Override public void incomingError(WebSocketException e) { if (connection.isInputClosed()) { return; // input is closed } // Forward Errors to User WebSocket Object websocket.incomingError(e); }