mirror of
https://github.com/nvms/prsm.git
synced 2025-12-16 00:00:52 +00:00
README
This commit is contained in:
parent
bffefe344a
commit
22140253fe
39
.github/workflows/mesh-tests.yml
vendored
39
.github/workflows/mesh-tests.yml
vendored
@ -1,39 +0,0 @@
|
||||
name: mesh-tests
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- 'packages/mesh/**'
|
||||
pull_request:
|
||||
paths:
|
||||
- 'packages/mesh/**'
|
||||
|
||||
jobs:
|
||||
test-mesh:
|
||||
runs-on: ubuntu-latest
|
||||
services:
|
||||
redis:
|
||||
image: redis:7
|
||||
ports:
|
||||
- 6379:6379
|
||||
options: >-
|
||||
--health-cmd "redis-cli ping"
|
||||
--health-interval 5s
|
||||
--health-timeout 5s
|
||||
--health-retries 5
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: install bun
|
||||
uses: oven-sh/setup-bun@v1
|
||||
|
||||
- name: install deps
|
||||
working-directory: packages/mesh
|
||||
run: bun install
|
||||
|
||||
- name: run tests
|
||||
working-directory: packages/mesh
|
||||
env:
|
||||
REDIS_URL: redis
|
||||
run: bun test
|
||||
@ -177,17 +177,6 @@ Unsubscribe when no longer needed:
|
||||
await client.unsubscribe("chat:room1");
|
||||
```
|
||||
|
||||
#### Return Value
|
||||
|
||||
`client.subscribe(...)` returns an object:
|
||||
|
||||
```ts
|
||||
{
|
||||
success: boolean; // Whether the subscription was accepted
|
||||
history: string[]; // Most recent messages (newest first)
|
||||
}
|
||||
```
|
||||
|
||||
This feature is great for:
|
||||
|
||||
- Real-time chat and collaboration
|
||||
|
||||
Loading…
Reference in New Issue
Block a user