onWsClosing method
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
@override
void onWsClosing(int code, String reason) {
_onWsClosing(code, reason);
}