Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@liveblocks/node
Advanced tools
A server-side utility that lets you set up a Liveblocks authentication endpoint. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.
@liveblocks/node
A server-side utility that lets you set up a Liveblocks authentication endpoint.
npm install @liveblocks/node
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.1.0
This release improves the client’s internals to ensure a more reliable connection with Liveblocks servers.
@liveblocks/client
room.getStatus()
: returns the current status of the WebSocket connection:
"initial"
, "connecting"
, "connected"
, "reconnecting"
, or
"disconnected"
room.subscribe("status")
: subscribe to changes of the connection status.room.subscribe("lost-connection")
: high-level API to get informed when
Liveblocks’ automatic reconnection process is taking longer than usual, so
you can show a toast message on screen. (See this
example for an
illustration.)@liveblocks/react
useStatus()
- React hook version of room.getStatus()
useLostConnectionListener()
- React hook version of
room.subscribe("lost-connection")
(See this
example for an
illustration.)These APIs still work, but are replaced by newer APIs. The old APIs will be removed in a future release of Liveblocks.
Old connection status codes are replaced by the new ones:
| ❌ Old statuses | ✅ New statuses | | --------------- | --------------- | | closed | initial | | authenticating | connecting | | connecting | connecting | | open | connected | | unavailable | reconnecting | | failed | disconnected |
Recommended steps to upgrade:
room.getConnectionState()
→ ✅ room.getStatus()
room.subscribe('connection')
→ ✅ room.subscribe('status')
clientOptions.fetchPolyfill
clientOptions.WebSocketPolyfill
→ ✅
clientOptions.polyfills: { fetch, WebSocket }
FAQs
A server-side utility that lets you set up a Liveblocks authentication endpoint. Liveblocks is the all-in-one toolkit to build collaborative products like Figma, Notion, and more.
The npm package @liveblocks/node receives a total of 0 weekly downloads. As such, @liveblocks/node popularity was classified as not popular.
We found that @liveblocks/node 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
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.