ras-stack 0.8.0 → 0.8.1
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/README.md +2 -3
- package/package.json +5 -1
package/README.md
CHANGED
|
@@ -93,15 +93,14 @@ Only enable `trustForwardedHeaders` behind a proxy that replaces incoming forwar
|
|
|
93
93
|
Applications choose their channel names, authorize subscriptions, and define payloads. `ras-stack` handles Centrifugo's HTTP publication, signed tokens, and repeated browser lifecycle mechanics:
|
|
94
94
|
|
|
95
95
|
```ts
|
|
96
|
+
import { CentrifugoPublisher, signRealtimeToken } from 'ras-stack/realtime'
|
|
96
97
|
import {
|
|
97
|
-
CentrifugoPublisher,
|
|
98
98
|
connectRealtimeClient,
|
|
99
99
|
createSameOriginRealtimeClient,
|
|
100
100
|
openRealtimeSubscription,
|
|
101
101
|
requestRealtimeTicket,
|
|
102
|
-
signRealtimeToken,
|
|
103
102
|
watchSubscriptionPresence,
|
|
104
|
-
} from 'ras-stack/realtime'
|
|
103
|
+
} from 'ras-stack/realtime/client'
|
|
105
104
|
|
|
106
105
|
const publisher = new CentrifugoPublisher({
|
|
107
106
|
apiUrl,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ras-stack",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Composable full-stack primitives shared across Richard Solomou's applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"authentication",
|
|
@@ -42,6 +42,10 @@
|
|
|
42
42
|
"types": "./dist/realtime/index.d.ts",
|
|
43
43
|
"default": "./dist/realtime/index.js"
|
|
44
44
|
},
|
|
45
|
+
"./realtime/client": {
|
|
46
|
+
"types": "./dist/realtime/client.d.ts",
|
|
47
|
+
"default": "./dist/realtime/client.js"
|
|
48
|
+
},
|
|
45
49
|
"./server": {
|
|
46
50
|
"types": "./dist/server/index.d.ts",
|
|
47
51
|
"default": "./dist/server/index.js"
|