MCPcopy Create free account

hub / github.com/liveblocks/liveblocks / functions

Functions8,448 in github.com/liveblocks/liveblocks

↓ 27 callersFunctioncreateLiveblocksClient
( options: ClientOptions<U> = DEFAULT_E2E_OPTIONS )
e2e/next-sandbox/utils/createClient.ts:17
↓ 27 callersFunctionenterAndConnect
( store: ReturnType<typeof createBasicStore>["store"], roomId: string = randomRoomId() )
packages/liveblocks-redux/src/__tests__/index.test.ts:191
↓ 27 callersFunctionmakePoller
( callback: (signal: AbortSignal) => Promise<void> | void, intervalMs: number, options?: { maxStaleT
packages/liveblocks-core/src/lib/Poller.ts:84
↓ 27 callersFunctionmakeSession
(options?: { secret?: string; tenantId?: string; organizationId?: string; })
packages/liveblocks-node/src/__tests__/Session.test.ts:11
↓ 27 callersFunctionmakeUpdate
( liveList: LiveList<TItem>, deltaUpdates: LiveListUpdateDelta[] )
packages/liveblocks-core/src/crdts/LiveList.ts:1437
↓ 27 callersFunctionobjectToQuery
(obj: { [key: string]: | FilterValue | { [key: string]: FilterValue | undefined } | undefined; }
packages/liveblocks-core/src/lib/objectToQuery.ts:107
↓ 27 callersMethodreconcilePartially
* Like reconcile(), but only touches the top-level keys present in * `partialObj`. Keys on this LiveObject that are absent from `partialObj` * a
packages/liveblocks-core/src/crdts/LiveObject.ts:904
↓ 27 callersFunctiontryParseJson
(rawMessage: string)
packages/liveblocks-core/src/lib/utils.ts:96
↓ 26 callersFunctioncellKey
(rowId: string, colId: string)
examples/nextjs-ai-spreadsheet/liveblocks.config.ts:51
↓ 26 callersFunctioncn
(...inputs: ClassValue[])
examples/nextjs-notification-settings/utils/cn.ts:4
↓ 26 callersMethodcreateThread
({ roomId, metadata, body, commentId, threadId, commentMetadata, attachmentIds,
packages/liveblocks-core/src/api-client.ts:138
↓ 26 callersFunctionnthDigit
(n: number)
packages/liveblocks-core/src/lib/position.ts:78
↓ 25 callersMethodaddNode
Adds a node. If a node with the same ID already exists, it is replaced.
packages/liveblocks-react-flow/src/node.ts:61
↓ 25 callersFunctiondeleteComment
({ threadId, commentId, }: { roomId: string; threadId: string; commentId: string; })
packages/liveblocks-core/src/room.ts:3700
↓ 25 callersMethodeditCommentMetadata
({ roomId, threadId, commentId, metadata, }: { roomId: string; threadId: string;
packages/liveblocks-core/src/api-client.ts:183
↓ 25 callersMethodfetchMessages
( threadId: string, options?: FetchOptions )
packages/liveblocks-chat-sdk-adapter/src/adapter.ts:261
↓ 25 callersFunctionmakeExternalRoomId
()
tools/liveblocks-cli/test/devserver/_helpers.ts:24
↓ 25 callersFunctionmake_session
( secret: str = "sk_testingtesting", user_info: dict | None = None, organization_id: str | None =
packages/liveblocks-python/tests/test_session.py:15
↓ 25 callersFunctionsimulateRemoteOps
* Injects server operations directly into the room's message handler, * bypassing the MockWebSocket transport layer.
packages/liveblocks-core/src/crdts/__tests__/LiveList.mockserver.test.ts:41
↓ 24 callersMethoddelete_node
* Delete a node and its entire subtree recursively. * Ignore if id="root" (root is immortal).
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:213
↓ 24 callersFunctiondispatch
(action: Action)
examples/nextjs-notification-settings/hooks/use-toast.ts:131
↓ 24 callersFunctiongetUniqueRoomSuffix
()
e2e/next-sandbox/test/multi.test.ts:20
↓ 24 callersFunctionhasPermissionAccess
( matrix: Partial<PermissionMatrix>, resource: PermissionResources, requiredAccess: RequiredAccessLevel
packages/liveblocks-core/src/permissions.ts:239
↓ 24 callersMethodindexOf
* Returns the first index at which a given element can be found in the LiveList, or -1 if it is not present. * @param searchElement Element to loca
packages/liveblocks-core/src/crdts/LiveList.ts:1323
↓ 24 callersMethodput_leased_session
* Create or update a leased session. * Note: This is a full replace operation - the caller is responsible for * merging/patching presence if nee
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:353
↓ 24 callersFunctionuseSignal
( signal: ISignal<T>, selector?: (value: T) => V, isEqual?: (a: V, b: V) => boolean )
packages/liveblocks-react/src/use-signal.ts:14
↓ 23 callersFunctioncn
(...inputs: ClassValue[])
examples/nextjs-ai-calendar/lib/utils.ts:4
↓ 23 callersFunctioncreateSerializedList
( id: string, parentId: string, parentKey: string )
packages/liveblocks-core/src/__tests__/_MockWebSocketServer.setup.ts:592
↓ 23 callersMethoddelete_leased_session
* Delete a leased session by session ID.
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:358
↓ 23 callersMethodget_snapshot
* Return a readable snapshot of the storage tree. * * @param lowMemory When true, the call site hints that the snapshot should * be optimized
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:243
↓ 23 callersFunctionlistUpdate
( items: ToJson<TItem>[], updates: JsonLiveListUpdateDelta<TItem>[] )
packages/liveblocks-core/src/__tests__/_updatesUtils.ts:134
↓ 23 callersMethodlist_feed_messages
* List feed messages for a feed with pagination. * Messages are sorted by createdAt descending (newest first).
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:407
↓ 23 callersMethodput
(key: string, value: Json)
packages/liveblocks-server/src/MetadataDB.ts:28
↓ 23 callersFunctionrandomInt
(max: number)
e2e/next-sandbox/utils/index.tsx:42
↓ 23 callersFunctionuseRoomInfo
* Returns room info from a given room ID. * * @example * const { info, error, isLoading } = useRoomInfo("room-id");
packages/liveblocks-react/src/liveblocks.tsx:2116
↓ 23 callersFunctionuseUnreadInboxNotificationsCount
* Returns the number of unread inbox notifications for the current user. * * @example * const { count, error, isLoading } = useUnreadInboxNotificat
packages/liveblocks-react/src/liveblocks.tsx:2046
↓ 22 callersFunctionassert
(duration: number, expected: string)
packages/liveblocks-react-ui/src/primitives/__tests__/Duration.test.tsx:57
↓ 22 callersFunctioncreateObjectOp
( id: string, parentId: string, parentKey: string, data: Partial<JsonObject>, intent?: "set" | "push
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:431
↓ 22 callersFunctioncreateObjectOp
( id: string, parentId: string, parentKey: string, data: Partial<JsonObject>, intent?: "set" | "push
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:426
↓ 22 callersFunctiondummyCommentData
({ roomId, ...overrides }: AtLeast<CommentData, "roomId">)
packages/liveblocks-react/src/__tests__/_dummies.ts:47
↓ 22 callersFunctioneditComment
(options: { threadId: string; commentId: string; body: CommentBody; metadata?: Patchable<CM>;
packages/liveblocks-core/src/room.ts:3683
↓ 22 callersFunctionpause
()
examples/nextjs-react-flow-ai/app/flowchart/agent/agent.ts:100
↓ 22 callersFunctionpreparePages
( url: string, options?: PreparePagesOptions )
e2e/next-sandbox/test/utils.ts:142
↓ 22 callersMethodverifyRequest
* Verifies a webhook request and returns the event
packages/liveblocks-node/src/webhooks.ts:32
↓ 21 callersFunctionbothPhases
( initialStorageFn: () => S, mutate: (root: LiveObject<S>) => void, opts: { convergeTimeoutMs?: number }
packages/liveblocks-core/e2e/storage-notification-reconnect.test.ts:137
↓ 21 callersFunctioncreateBasicStore
()
packages/liveblocks-redux/src/__tests__/index.test.ts:165
↓ 21 callersMethoddisconnect
* Call this method to disconnect from the current WebSocket. Is going to be * a no-op if there is no active connection.
packages/liveblocks-core/src/connection.ts:1070
↓ 21 callersFunctioniso
(s: string)
packages/liveblocks-core/src/lib/utils.ts:267
↓ 21 callersFunctionpickFrom
(array: readonly T[])
e2e/next-sandbox/test/utils.ts:343
↓ 21 callersMethodrender
* A function that returns a DOM element for the cursor. * @param user The user details object * @example * render: user => { * const curs
packages/liveblocks-react-tiptap/src/collaboration-caret/collaboration-caret.ts:55
↓ 20 callersFunctionROOM_NOT_FOUND
(roomId: string)
tools/liveblocks-cli/src/dev-server/routes/rest-api.ts:76
↓ 20 callersFunctionbatch
(callback: Callback<void>)
packages/liveblocks-core/src/lib/signals.ts:69
↓ 20 callersFunctioncreateBasicStore
()
packages/liveblocks-zustand/src/__tests__/index.test.ts:139
↓ 20 callersMethodeditThreadMetadata
({ roomId, metadata, threadId, }: { roomId: string; metadata: Patchable<TM>; threadI
packages/liveblocks-core/src/api-client.ts:172
↓ 20 callersMethodevery
* Tests whether all elements pass the test implemented by the provided function. * @param predicate Function to test for each element, taking two a
packages/liveblocks-core/src/crdts/LiveList.ts:1253
↓ 20 callersMethodfilter
(predicate: (value: T) => boolean)
packages/liveblocks-core/src/lib/SortedList.ts:231
↓ 20 callersFunctionisLiveNode
(value: unknown)
packages/liveblocks-core/src/crdts/liveblocks-helpers.ts:106
↓ 20 callersFunctionmakeConfig
(tsconfigPath = "./tsconfig.json")
shared/eslint-config/index.js:12
↓ 20 callersMethodput_meta
* Store `value` under `key`. Overwrite any existing value.
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:282
↓ 20 callersMethodresume
* Immediately sends all buffered messages to the server, in order, and * stops buffering any new messages.
packages/liveblocks-core/e2e/utils.ts:76
↓ 20 callersMethodstop
()
examples/nextjs-ai-elements-realtime/components/ai-elements/prompt-input.tsx:1062
↓ 20 callersMethodtoString
()
packages/liveblocks-core/src/comments/comment-body.ts:387
↓ 20 callersFunctiontryCatch
( promise: PromiseLike<T> | (() => PromiseLike<T>) | (() => T) )
packages/liveblocks-server/src/lib/tryCatch.ts:62
↓ 20 callersFunctionuseSyncStatus
(options?: UseSyncStatusOptions)
packages/liveblocks-react/src/liveblocks.tsx:1734
↓ 20 callersFunctionwait
(millis: number)
packages/liveblocks-core/src/lib/utils.ts:186
↓ 19 callersFunctionauthorizeWebSocket
( req: Request )
tools/liveblocks-cli/src/dev-server/auth.ts:87
↓ 19 callersMethodcontains
(target: Point | Rect)
examples/nextjs-notion-like-ai-editor/app/utils/rect.ts:74
↓ 19 callersMethoddelete_child_key
* Delete a key from node `id`. Handle two cases: * * 1. If id is an OBJECT with `key` in its data: remove that data field. * 2. If a child ex
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:224
↓ 19 callersFunctionexpectStorageAndState
( data: ToJson<S>, expectedNodeCount?: number )
packages/liveblocks-core/src/__tests__/immutable.test.ts:40
↓ 19 callersMethodfindRight
Finds the rightmost item that matches the predicate.
packages/liveblocks-core/src/lib/SortedList.ts:284
↓ 19 callersFunctionflushNowOrSoon
()
packages/liveblocks-core/src/room.ts:2706
↓ 19 callersMethodgetYDoc
(logger: Logger, docId: YDocId)
packages/liveblocks-server/src/YjsStorage.ts:67
↓ 19 callersMethodhas_child_at
* Return true iff a child node exists at (parentId, parentKey). Static data * keys on OBJECT nodes do not count—return false for those.
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:177
↓ 19 callersFunctionsetPresence
({ cursor, thinking, ttl, }: { cursor?: Point; thinking?: boolean; ttl?: number; }
examples/nextjs-react-flow-ai/app/flowchart/agent/agent.ts:77
↓ 19 callersFunctionuseGroupInfo
* Returns group info from a given group ID. * * @example * const { info, error, isLoading } = useGroupInfo("group-id");
packages/liveblocks-react/src/liveblocks.tsx:2136
↓ 19 callersFunctionuseMyPresence
()
packages/liveblocks-react/src/room.tsx:1132
↓ 18 callersFunctionapi
( method: string, path: string, body?: unknown )
tools/liveblocks-cli/test/devserver/rest-api/storage-mutation.test.ts:29
↓ 18 callersFunctionassertThat
( value: unknown, guard: (v: unknown) => v is T )
packages/liveblocks-core/src/__tests__/sync-config.test.ts:9
↓ 18 callersFunctionauth
(req: NextApiRequest, res: NextApiResponse)
examples/nextjs-form/pages/api/liveblocks-auth.ts:14
↓ 18 callersFunctioncmpSemver
(a: string, b: string)
packages/liveblocks-server/src/lib/semver.ts:27
↓ 18 callersFunctioncollectListDeltas
( batches: StorageUpdate[][], targetNode: object )
packages/liveblocks-core/e2e/storage-notification-reconnect.test.ts:211
↓ 18 callersMethodcreateTicket
* Issues a Ticket with a new/unique actor ID * * IMPORTANT! As the caller of this function, you are responsible for * ensuring you trust the
packages/liveblocks-server/src/Room.ts:620
↓ 18 callersFunctiondefaultLiveblocksVitestConfig
(options = {})
shared/vitest-config/index.js:7
↓ 18 callersMethodfind
Finds the leftmost item that matches the predicate.
packages/liveblocks-core/src/lib/SortedList.ts:262
↓ 18 callersMethodfrom
(obj: JsonObject, config?: SyncConfig)
packages/liveblocks-core/src/crdts/LiveObject.ts:868
↓ 18 callersFunctiongetOutputJson
(page: Page)
e2e/next-sandbox/test/comments/composer.test.ts:30
↓ 18 callersMethodgetRooms
* Returns a list of your rooms. The rooms are returned sorted by creation date, from newest to oldest. You can filter rooms by metadata, users accesse
packages/liveblocks-node/src/client.ts:1061
↓ 18 callersMethoditer_children
* Iterate all children of a node. Each child is yielded as [parentKey, * childId]. Children will be yielded in their parent_key order.
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:94
↓ 18 callersFunctionmergeObjUpdates
( batches: StorageUpdate[][], targetNode: object )
packages/liveblocks-core/e2e/storage-notification-reconnect.test.ts:231
↓ 18 callersFunctionnanoSleep
()
e2e/next-sandbox/test/utils.ts:339
↓ 18 callersMethodoff
(event: "sync", listener: (synced: boolean) => void)
packages/liveblocks-core/src/room.ts:1228
↓ 18 callersFunctionregister
( id: string, parentId: string, parentKey: string, data: Json )
tools/liveblocks-cli/test/plugins/_generateFullTestSuite.ts:414
↓ 18 callersFunctionregister
( id: string, parentId: string, parentKey: string, data: Json )
packages/liveblocks-server/test/plugins/_generateFullTestSuite.ts:409
↓ 18 callersMethodserializePermissions
@internal - For unit tests only
packages/liveblocks-node/src/Session.ts:154
↓ 18 callersFunctionuseRenderCount
()
e2e/next-sandbox/utils/index.tsx:64
↓ 18 callersFunctionwsReq
(params: Record<string, string>, version = "v8")
tools/liveblocks-cli/test/devserver/auth.test.ts:171
↓ 17 callersFunctionDUMMY
( data: J, status?: number | undefined, message = "This is a dummy response." )
tools/liveblocks-cli/src/dev-server/responses.ts:40
↓ 17 callersMethodadd_feed_message
* Add a message to a feed. * The message must have id, createdAt, and updatedAt already set (handled by Room layer). * The feed must exist, othe
packages/liveblocks-server/src/interfaces/IStorageDriver.ts:417
↓ 17 callersMethodcreateFeedMessage
* Creates a new message in a feed. * @param params.roomId The room ID to create the feed message in. * @param params.feedId The feed ID to creat
packages/liveblocks-node/src/client.ts:3611
↓ 17 callersFunctioncreateRandomChat
(page: Page)
e2e/next-ai-kitchen-sink/test/test-helpers.ts:11
← previousnext →201–300 of 8,448, ranked by callers