onWsClosing abstract method

void onWsClosing(
  1. int code,
  2. String reason
)

Invoked when the remote peer has indicated that no more incoming messages will be transmitted. All resources like WebSocketConnection should be released after this.

Implementation

void onWsClosing(int code, String reason);