Interface WebSocket.CloseHandler

Record Components:
statusCode - the RFC 6455 close status code (1000 = normal, etc.)
reason - the human-readable reason, or empty string
Enclosing class:
WebSocket

public static interface WebSocket.CloseHandler
Handler for the close event.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onClose(WebSocket ws, int statusCode, String reason)
     
  • Method Details