@real-db/server
Version:
The library for syncing data changes to multiple devices from your database
18 lines (17 loc) • 611 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var RealDBClient = /** @class */ (function () {
function RealDBClient(url) {
this._connectionUrl = url;
this._cache = {};
}
RealDBClient.prototype.connect = function (options) {
this._connectionUrl = this._connectionUrl || options.url;
options.url = this._connectionUrl;
if (!this._connectionUrl) {
throw Error('Connection url must be provided to connect to socket');
}
};
return RealDBClient;
}());
exports.RealDBClient = RealDBClient;