@synet/realtime
Version:
Realtime Communication server/client implementations
13 lines (12 loc) • 427 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createGunClient = createGunClient;
const gun_provider_1 = require("./gun-provider");
/**
* Creates a new GUN client
* @param gunUrl The URL of the GUN server
* @param options Configuration options for the GUN client
*/
function createGunClient(gunUrl, options = {}) {
return new gun_provider_1.GunRealtimeProvider(gunUrl, options);
}