@djangocfg/centrifugo 2.1.28 → 2.1.30

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@djangocfg/centrifugo",
3
- "version": "2.1.28",
3
+ "version": "2.1.30",
4
4
  "description": "Production-ready Centrifugo WebSocket client for React with real-time subscriptions, RPC patterns, and connection state management",
5
5
  "keywords": [
6
6
  "centrifugo",
@@ -51,9 +51,9 @@
51
51
  "centrifuge": "^5.2.2"
52
52
  },
53
53
  "peerDependencies": {
54
- "@djangocfg/api": "^2.1.28",
55
- "@djangocfg/ui-nextjs": "^2.1.28",
56
- "@djangocfg/layouts": "^2.1.28",
54
+ "@djangocfg/api": "^2.1.30",
55
+ "@djangocfg/ui-nextjs": "^2.1.30",
56
+ "@djangocfg/layouts": "^2.1.30",
57
57
  "consola": "^3.4.2",
58
58
  "lucide-react": "^0.545.0",
59
59
  "moment": "^2.30.1",
@@ -61,7 +61,7 @@
61
61
  "react-dom": "^19.1.0"
62
62
  },
63
63
  "devDependencies": {
64
- "@djangocfg/typescript-config": "^2.1.28",
64
+ "@djangocfg/typescript-config": "^2.1.30",
65
65
  "@types/react": "^19.1.0",
66
66
  "@types/react-dom": "^19.1.0",
67
67
  "moment": "^2.30.1",
@@ -571,11 +571,14 @@ export class CentrifugoRPCClient {
571
571
  */
572
572
  async namedRPC<TRequest = any, TResponse = any>(
573
573
  method: string,
574
- data: TRequest
574
+ data: TRequest,
575
+ options?: { timeout?: number }
575
576
  ): Promise<TResponse> {
576
577
  this.logger.info(`Native RPC: ${method}`, { data });
577
578
 
578
579
  try {
580
+ // Note: centrifuge.rpc does not support timeout parameter directly
581
+ // Timeout should be handled at higher level or via AbortController
579
582
  const result = await this.centrifuge.rpc(method, data);
580
583
 
581
584
  this.logger.success(`Native RPC success: ${method}`, {