@gravito/radiance
v1.0.3
Published
Lightweight, high-performance broadcasting system for Gravito framework. Supports multiple drivers (Pusher, Ably, Redis, WebSocket) with zero runtime overhead.
Maintainers
Readme
@gravito/radiance
Gravito 的廣播模組,支援 Pusher、Ably、Redis、WebSocket 等驅動。
安裝
bun add @gravito/radiance快速開始
import { PlanetCore } from '@gravito/core'
import { OrbitRadiance } from '@gravito/radiance'
const core = await PlanetCore.boot({
orbits: [
OrbitRadiance.configure({
driver: 'pusher',
config: {
appId: 'your-app-id',
key: 'your-key',
secret: 'your-secret',
cluster: 'mt1',
},
}),
],
})