コード例 #1
0
 /** Incoming Errors from Parser */
 @Override
 public void incomingError(Throwable t) {
   if (connection.getIOState().isInputAvailable()) {
     // Forward Errors to User WebSocket Object
     websocket.incomingError(t);
   }
 }
コード例 #2
0
 /** 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);
 }