Package org.java_websocket.framing

Examples of org.java_websocket.framing.CloseFrameBuilder


                wsl.onWebsocketCloseInitiated( this, code, message );
              } catch ( RuntimeException e ) {
                wsl.onWebsocketError( this, e );
              }
            }
            sendFrame( new CloseFrameBuilder( code, message ) );
          } catch ( InvalidDataException e ) {
            wsl.onWebsocketError( this, e );
            flushAndClose( CloseFrame.ABNORMAL_CLOSE, "generated frame is invalid", false );
          }
        }
View Full Code Here


      } else {
        currentFrame.put( buffer );
      }
      if( !currentFrame.hasRemaining() ) {
        if( Arrays.equals( currentFrame.array(), closehandshake ) ) {
          frames.add( new CloseFrameBuilder( CloseFrame.NORMAL ) );
          return frames;
        }
        else{
          throw new InvalidFrameException();
        }
View Full Code Here

      buffer.position( buffer.position() + payload.limit() );
    }

    FrameBuilder frame;
    if( optcode == Opcode.CLOSING ) {
      frame = new CloseFrameBuilder();
    } else {
      frame = new FramedataImpl1();
      frame.setFin( FIN );
      frame.setOptcode( optcode );
    }
View Full Code Here

TOP

Related Classes of org.java_websocket.framing.CloseFrameBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.