This commit is contained in:
nvms 2025-04-17 17:14:33 -04:00
parent bffefe344a
commit 22140253fe
2 changed files with 0 additions and 50 deletions

View File

@ -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

View File

@ -177,17 +177,6 @@ Unsubscribe when no longer needed:
await client.unsubscribe("chat:room1"); 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: This feature is great for:
- Real-time chat and collaboration - Real-time chat and collaboration