@cloudflare/realtimekit 2.0.3-staging.3 → 2.0.3-staging.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1998,7 +1998,12 @@ declare class RoomSocketHandler {
1998
1998
  payload: Uint8Array;
1999
1999
  }>;
2000
2000
  broadcastToPeers(type: string, peerIds: string[], payload: BroadcastMessagePayload): Promise<boolean>;
2001
- leaveRoom(): Promise<void>;
2001
+ leaveRoom(peer: {
2002
+ peerId: string;
2003
+ userId: string;
2004
+ name: string;
2005
+ waitlistStatus: 'accepted' | 'waiting' | 'rejected' | 'none';
2006
+ }): boolean;
2002
2007
  kick(peerId: string): Promise<void>;
2003
2008
  kickAll(propagateKickAll?: boolean): Promise<void>;
2004
2009
  getWaitingRoomRequests(): void;
@@ -2035,7 +2035,12 @@ declare class RoomSocketHandler {
2035
2035
  payload: Uint8Array;
2036
2036
  }>;
2037
2037
  broadcastToPeers(type: string, peerIds: string[], payload: BroadcastMessagePayload): Promise<boolean>;
2038
- leaveRoom(): Promise<void>;
2038
+ leaveRoom(peer: {
2039
+ peerId: string;
2040
+ userId: string;
2041
+ name: string;
2042
+ waitlistStatus: 'accepted' | 'waiting' | 'rejected' | 'none';
2043
+ }): boolean;
2039
2044
  kick(peerId: string): Promise<void>;
2040
2045
  kickAll(propagateKickAll?: boolean): Promise<void>;
2041
2046
  getWaitingRoomRequests(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/realtimekit",
3
- "version": "2.0.3-staging.3",
3
+ "version": "2.0.3-staging.5",
4
4
  "description": "A real-time video and audio SDK for building custom, collaborative communication experiences.",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.es.js",