Class WebSocketProtocolException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
dev.relism.flash.websocket.WebSocketProtocolException
All Implemented Interfaces:
Serializable

public final class WebSocketProtocolException extends IOException
A WebSocket frame violated RFC 6455 (bad opcode, wrong masking direction, oversized control frame, fragmented control frame, or a message exceeding the session's buffer). Carries the close code (1002 protocol error, 1009 message too big) the session must send before closing — see WebSocketLoop, the single site that catches this.
See Also:
  • Constructor Details

    • WebSocketProtocolException

      public WebSocketProtocolException(int closeCode, String message)
  • Method Details

    • closeCode

      public int closeCode()