Class WebSocketFrame

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected WebSocketFrame​(boolean finalFragment, int rsv, io.netty5.buffer.api.Buffer binaryData)  
      protected WebSocketFrame​(io.netty5.buffer.api.Buffer binaryData)  
      protected WebSocketFrame​(WebSocketFrame copyFrom, io.netty5.buffer.api.Buffer binaryData)
      This is a copy-constructor, used by sub-classes to implement Resource.send().
      protected WebSocketFrame​(io.netty5.util.Send<io.netty5.buffer.api.Buffer> binaryData)  
    • Constructor Detail

      • WebSocketFrame

        protected WebSocketFrame​(io.netty5.buffer.api.Buffer binaryData)
      • WebSocketFrame

        protected WebSocketFrame​(io.netty5.util.Send<io.netty5.buffer.api.Buffer> binaryData)
      • WebSocketFrame

        protected WebSocketFrame​(boolean finalFragment,
                                 int rsv,
                                 io.netty5.buffer.api.Buffer binaryData)
      • WebSocketFrame

        protected WebSocketFrame​(WebSocketFrame copyFrom,
                                 io.netty5.buffer.api.Buffer binaryData)
        This is a copy-constructor, used by sub-classes to implement Resource.send(). The life cycle of the binaryData buffer is not manipulated by this constructor, but instead stored as-is.
        Parameters:
        copyFrom - The original frame instance to copy from.
        binaryData - The binary data of the original frame.
    • Method Detail

      • isFinalFragment

        public boolean isFinalFragment()
        Flag to indicate if this frame is the final fragment in a message. The first fragment (frame) may also be the final fragment.
      • rsv

        public int rsv()
        Bits used for extensions to the standard.
      • binaryData

        public io.netty5.buffer.api.Buffer binaryData()