getWSCloseError function
Implementation
CloudBaseException getWSCloseError(int code, String? reason) {
CloseEventInfo? info = closeEventCodeInfo[code];
String errMsg = info == null
? 'code $code'
: '${info.name}, code $code, reason ${reason != null ? reason : info.description}';
return CloudBaseException(
code: ErrCode.SDK_DATABASE_REALTIME_LISTENER_WEBSOCKET_CONNECTION_CLOSED,
message: errMsg,
);
}