@djangocfg/centrifugo 2.1.140 → 2.1.143
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.
|
|
3
|
+
"version": "2.1.143",
|
|
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",
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
"centrifuge": "^5.2.2"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
|
-
"@djangocfg/api": "^2.1.
|
|
67
|
-
"@djangocfg/i18n": "^2.1.
|
|
68
|
-
"@djangocfg/ui-core": "^2.1.
|
|
69
|
-
"@djangocfg/ui-tools": "^2.1.
|
|
70
|
-
"@djangocfg/layouts": "^2.1.
|
|
66
|
+
"@djangocfg/api": "^2.1.143",
|
|
67
|
+
"@djangocfg/i18n": "^2.1.143",
|
|
68
|
+
"@djangocfg/ui-core": "^2.1.143",
|
|
69
|
+
"@djangocfg/ui-tools": "^2.1.143",
|
|
70
|
+
"@djangocfg/layouts": "^2.1.143",
|
|
71
71
|
"consola": "^3.4.2",
|
|
72
72
|
"lucide-react": "^0.545.0",
|
|
73
73
|
"moment": "^2.30.1",
|
|
@@ -75,12 +75,12 @@
|
|
|
75
75
|
"react-dom": "^19.1.0"
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@djangocfg/api": "^2.1.
|
|
79
|
-
"@djangocfg/i18n": "^2.1.
|
|
80
|
-
"@djangocfg/layouts": "^2.1.
|
|
81
|
-
"@djangocfg/typescript-config": "^2.1.
|
|
82
|
-
"@djangocfg/ui-core": "^2.1.
|
|
83
|
-
"@djangocfg/ui-tools": "^2.1.
|
|
78
|
+
"@djangocfg/api": "^2.1.143",
|
|
79
|
+
"@djangocfg/i18n": "^2.1.143",
|
|
80
|
+
"@djangocfg/layouts": "^2.1.143",
|
|
81
|
+
"@djangocfg/typescript-config": "^2.1.143",
|
|
82
|
+
"@djangocfg/ui-core": "^2.1.143",
|
|
83
|
+
"@djangocfg/ui-tools": "^2.1.143",
|
|
84
84
|
"@types/node": "^24.7.2",
|
|
85
85
|
"@types/react": "^19.1.0",
|
|
86
86
|
"@types/react-dom": "^19.1.0",
|
|
@@ -24,34 +24,21 @@ import type {
|
|
|
24
24
|
} from './types';
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
connect as connectToServer,
|
|
30
|
-
disconnect as disconnectFromServer,
|
|
31
|
-
type ConnectionState,
|
|
27
|
+
connect as connectToServer, type ConnectionState, createConnectionState,
|
|
28
|
+
disconnect as disconnectFromServer, setupConnectionHandlers
|
|
32
29
|
} from './connection';
|
|
33
|
-
|
|
34
|
-
import {
|
|
35
|
-
subscribe as subscribeToChannel,
|
|
36
|
-
unsubscribe as unsubscribeFromChannel,
|
|
37
|
-
unsubscribeAll as unsubscribeFromAllChannels,
|
|
38
|
-
getActiveSubscriptions as getClientSubscriptions,
|
|
39
|
-
getServerSideSubscriptions as getServerSubscriptions,
|
|
40
|
-
getAllSubscriptions as getCombinedSubscriptions,
|
|
41
|
-
type SubscriptionManager,
|
|
42
|
-
} from './subscriptions';
|
|
43
|
-
|
|
44
30
|
import {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
namedRPC as nativeNamedRPC,
|
|
49
|
-
namedRPCNoWait as nativeNamedRPCNoWait,
|
|
50
|
-
namedRPCWithRetry as nativeNamedRPCWithRetry,
|
|
51
|
-
type RPCManager,
|
|
52
|
-
type NamedRPCWithRetryOptions,
|
|
31
|
+
call as legacyCall, handleResponse, namedRPC as nativeNamedRPC,
|
|
32
|
+
namedRPCNoWait as nativeNamedRPCNoWait, namedRPCWithRetry as nativeNamedRPCWithRetry,
|
|
33
|
+
type NamedRPCWithRetryOptions, rpc as legacyRpc, RPCManager
|
|
53
34
|
} from './rpc';
|
|
54
|
-
|
|
35
|
+
import {
|
|
36
|
+
getActiveSubscriptions as getClientSubscriptions,
|
|
37
|
+
getAllSubscriptions as getCombinedSubscriptions,
|
|
38
|
+
getServerSideSubscriptions as getServerSubscriptions, subscribe as subscribeToChannel,
|
|
39
|
+
type SubscriptionManager, unsubscribe as unsubscribeFromChannel,
|
|
40
|
+
unsubscribeAll as unsubscribeFromAllChannels
|
|
41
|
+
} from './subscriptions';
|
|
55
42
|
import { checkApiVersion as checkVersion } from './version';
|
|
56
43
|
|
|
57
44
|
// Re-export types for backwards compatibility
|
package/src/core/client/rpc.ts
CHANGED
|
@@ -8,11 +8,10 @@ import type { Centrifuge, Subscription } from 'centrifuge';
|
|
|
8
8
|
|
|
9
9
|
import { dispatchCentrifugoError } from '../../events';
|
|
10
10
|
import { RPCError } from '../errors/RPCError';
|
|
11
|
+
import { generateCorrelationId } from './connection';
|
|
11
12
|
|
|
12
13
|
import type { Logger } from '../logger';
|
|
13
14
|
import type { PendingRequest, RPCOptions, RetryOptions } from './types';
|
|
14
|
-
import { generateCorrelationId } from './connection';
|
|
15
|
-
|
|
16
15
|
/** Default RPC timeout in milliseconds */
|
|
17
16
|
const DEFAULT_RPC_TIMEOUT = 30000;
|
|
18
17
|
|