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) {
throw UnimplementedError(
'onWsClosing(int code, String reason) has not been implemented.');
}