Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@liveblocks/client
Advanced tools
A client that lets you interact with Liveblocks servers. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.
@liveblocks/client
@liveblocks/client
provides the APIs to integrate with Liveblocks—a platform
to build, host, and scale collaborative applications with zero configuration, no
maintenance required.
npm install @liveblocks/client
Read the documentation for guides and API references.
Explore our collaborative examples to help you get started.
All examples are open-source and live in this repository, within
/examples
.
See the latest changes or learn more about upcoming releases.
Licensed under the Apache License 2.0, Copyright © 2021-present Liveblocks.
See LICENSE for more information.
v1.5.0
Support multiple RoomProviders, or mixing and matching our React package in the same app with a Redux and/or Zustand instance.
At the client level, there is a new API for entering/leaving rooms, which we’re now recommending over the old APIs. (The old APIs remain working exactly how they are today, however.)
// Old APIs we'll no longer be recommending (but that will remain working)
const room = client.enter("my-room", options);
client.getRoom("my-room");
client.leave("my-room");
// New API we'll be recommending instead
const { room, leave } = client.enterRoom("my-room", options);
leave();
@liveblocks/client
backgroundKeepAliveTimeout
(a numeric value in
milliseconds). See
docs.Client.enterRoom(roomId, options)
– enters the room and return both the
room and an "unsubscribe function" to leave that room again. This newer API
supports entering/leaving the same room multiple times, making it possible
to connect to the same room from different parts of your application. See
docs.Client.logout()
– Call this on the Liveblocks client when you log out a
user in your application. It will purge all auth tokens and force-leave any
rooms, if any are still connected. See
docs.LiveList.clone()
– see
docs.LiveMap.clone()
– see
docs.LiveObject.clone()
– see
docs.client.enter(roomId, options)
client.leave(roomId)
shouldInitiallyConnect
→ autoConnect
. Its meaning or
working did not change.Cannot set parent: node already has a parent
error when
initializing storage with Live datastructures that are already tied to a
Storage tree.@liveblocks/react
RoomProvider
components in your component tree for
the same room ID.RoomProvider
prop: shouldInitiallyConnect
→ autoConnect
. Its
meaning or working did not change.useOthersListener({ type, user, others })
, see
docs@liveblocks/redux
leaveRoom()
function no longer accepts a roomId
. It will
always leave the currently joined room.@liveblocks/zustand
enterRoom()
function will now return a leave callback function.leaveRoom()
function no longer accepts a roomId
. It will
always leave the currently joined room.FAQs
A client that lets you interact with Liveblocks servers. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.
The npm package @liveblocks/client receives a total of 32,444 weekly downloads. As such, @liveblocks/client popularity was classified as popular.
We found that @liveblocks/client demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.