@roomservice/browser
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -0,1 +1,2 @@ | ||
import Automerge from "automerge"; | ||
import { KeyValueObject } from "./types"; | ||
@@ -23,2 +24,3 @@ declare class RoomClient<T extends KeyValueObject> { | ||
onDisconnect(callback: () => any): void; | ||
state(): Promise<Automerge.FreezeObject<T>>; | ||
private syncOfflineCache; | ||
@@ -25,0 +27,0 @@ private _sendMsgToSocket; |
@@ -159,2 +159,5 @@ "use strict"; | ||
} | ||
async state() { | ||
return this._docs.getDoc("default"); | ||
} | ||
async syncOfflineCache() { | ||
@@ -161,0 +164,0 @@ const data = await offline_1.default.get(this._reference, "default"); |
{ | ||
"name": "@roomservice/browser", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"main": "dist/index", | ||
@@ -5,0 +5,0 @@ "types": "dist/index", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31356
466