New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@liveblocks/client

Package Overview
Dependencies
Maintainers
4
Versions
453
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liveblocks/client - npm Package Compare versions

Comparing version 0.17.0-beta1 to 0.17.0-beta2

16

internal.d.ts

@@ -126,10 +126,10 @@ import {

*/
declare type ClientMsg<TPresence extends JsonObject, TEvent extends Json> =
| BroadcastEventClientMsg<TEvent>
declare type ClientMsg<TPresence extends JsonObject, TRoomEvent extends Json> =
| BroadcastEventClientMsg<TRoomEvent>
| UpdatePresenceClientMsg<TPresence>
| UpdateStorageClientMsg
| FetchStorageClientMsg;
declare type BroadcastEventClientMsg<TEvent extends Json> = {
declare type BroadcastEventClientMsg<TRoomEvent extends Json> = {
type: ClientMsgCode.BROADCAST_EVENT;
event: TEvent;
event: TRoomEvent;
};

@@ -224,3 +224,3 @@ declare type UpdatePresenceClientMsg<TPresence extends JsonObject> = {

TUserMeta extends BaseUserMeta,
TEvent extends Json
TRoomEvent extends Json
> =

@@ -230,3 +230,3 @@ | UpdatePresenceServerMsg<TPresence>

| UserLeftServerMsg
| BroadcastedEventServerMsg<TEvent>
| BroadcastedEventServerMsg<TRoomEvent>
| RoomStateServerMsg<TUserMeta>

@@ -295,3 +295,3 @@ | InitialDocumentStateServerMsg

*/
declare type BroadcastedEventServerMsg<TEvent extends Json> = {
declare type BroadcastedEventServerMsg<TRoomEvent extends Json> = {
type: ServerMsgCode.BROADCASTED_EVENT;

@@ -306,3 +306,3 @@ /**

*/
event: TEvent;
event: TRoomEvent;
};

@@ -309,0 +309,0 @@ /**

{
"name": "@liveblocks/client",
"version": "0.17.0-beta1",
"version": "0.17.0-beta2",
"description": "A client that lets you interact with Liveblocks servers.",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -306,3 +306,3 @@ declare abstract class AbstractCrdt {

) => void;
declare type EventCallback<TEvent extends Json> = ({
declare type EventCallback<TRoomEvent extends Json> = ({
connectionId,

@@ -312,3 +312,3 @@ event,

connectionId: number;
event: TEvent;
event: TRoomEvent;
}) => void;

@@ -433,6 +433,6 @@ declare type ErrorCallback = (error: Error) => void;

TUserMeta extends BaseUserMeta,
TEvent extends Json
TRoomEvent extends Json
>(
roomId: string
): Room<TPresence, TStorage, TUserMeta, TEvent> | null;
): Room<TPresence, TStorage, TUserMeta, TRoomEvent> | null;
/**

@@ -447,7 +447,7 @@ * Enters a room and returns it.

TUserMeta extends BaseUserMeta,
TEvent extends Json
TRoomEvent extends Json
>(
roomId: string,
options?: RoomInitializers<TPresence, TStorage>
): Room<TPresence, TStorage, TUserMeta, TEvent>;
): Room<TPresence, TStorage, TUserMeta, TRoomEvent>;
/**

@@ -642,3 +642,3 @@ * Leaves a room.

TUserMeta extends BaseUserMeta,
TEvent extends Json
TRoomEvent extends Json
> = {

@@ -686,3 +686,3 @@ /**

*/
(type: "event", listener: EventCallback<TEvent>): () => void;
(type: "event", listener: EventCallback<TRoomEvent>): () => void;
/**

@@ -798,3 +798,3 @@ * Subscribe to errors thrown in the room.

*/
broadcastEvent: (event: TEvent, options?: BroadcastOptions) => void;
broadcastEvent: (event: TRoomEvent, options?: BroadcastOptions) => void;
/**

@@ -801,0 +801,0 @@ * Get the room's storage asynchronously.

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc