@liveblocks/react
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -820,2 +820,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
_socket = null; | ||
updateUsers({}); | ||
if (event.wasClean === false) { | ||
@@ -857,3 +858,2 @@ state = RoomState.Default; | ||
if (_socket) { | ||
_socket.close(); | ||
_socket.removeEventListener("open", onOpen); | ||
@@ -863,6 +863,7 @@ _socket.removeEventListener("message", onMessage); | ||
_socket.removeEventListener("error", onError); | ||
_socket.close(); | ||
_socket = null; | ||
} | ||
state = RoomState.Default; | ||
_users = {}; | ||
updateUsers({}); | ||
clearTimeout(retryTimeoutId); | ||
@@ -881,2 +882,5 @@ _listeners.open = []; | ||
} | ||
function getOthers() { | ||
return _users; | ||
} | ||
function updatePresence(overrides) { | ||
@@ -979,2 +983,3 @@ updateMyPresence(Object.assign(Object.assign({}, _me), overrides)); | ||
updatePresence, | ||
getOthers, | ||
}; | ||
@@ -1135,2 +1140,3 @@ } | ||
var _room = client.getRoom(room); | ||
setOthers(_room.getOthers()); | ||
_room.connect(); | ||
@@ -1137,0 +1143,0 @@ _room.addEventListener("others-presence", onOthersChange); |
{ | ||
"name": "@liveblocks/react", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "", | ||
@@ -16,6 +16,6 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@liveblocks/client": "0.3.0" | ||
"@liveblocks/client": "0.3.1" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.14.0 || ^17.0" | ||
"react": "^16.14.0 || ^17" | ||
}, | ||
@@ -29,2 +29,3 @@ "devDependencies": { | ||
"@testing-library/jest-dom": "^5.11.9", | ||
"@testing-library/react": "^11.2.5", | ||
"@types/jest": "^26.0.20", | ||
@@ -31,0 +32,0 @@ "@types/react": "^16.14.0", |
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
130203
1225
19
+ Added@liveblocks/client@0.3.1(transitive)
- Removed@liveblocks/client@0.3.0(transitive)
Updated@liveblocks/client@0.3.1