Interface WebSocketCloseCodeReasonListener


public interface WebSocketCloseCodeReasonListener
Extend the normal close listener with one that support the WebSocket's code and reason.
See Also:
  • "http://tools.ietf.org/html/rfc6455#section-5.5.1"
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onClose(WebSocket websocket, int code, String reason)
    Invoked when the WebSocket is close.
  • Method Details

    • onClose

      void onClose(WebSocket websocket, int code, String reason)
      Invoked when the WebSocket is close.
      Parameters:
      websocket -