Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 26, 2024
1 parent c119028 commit 54e0dca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions docs/1.guide/3.peer.md
Expand Up @@ -51,3 +51,6 @@ Leave a boradcast channel.
Boradcast a message to the channel.

:read-more{to="/guide/pubsub"}

> [!IMPORTANT]
> Native pub/sub is currently only available for [Bun](/adapters/bun) and [Node.js with uWebSockets](http://localhost:4000/adapters/node#uwebsockets).
2 changes: 1 addition & 1 deletion docs/1.guide/5.pubsub.md
Expand Up @@ -7,7 +7,7 @@ icon: simple-icons:googlepubsub
CrossWS supports native pub-sub API integration. A [peer](/guide/peer) can be subscribed to a set of named channels using `peer.subscribe(<name>)`. Messages can be published tro a channel using `peer.publish(<name>, <message>)`.

> [!IMPORTANT]
> Native pub/sub is currently only available for [Bun](/adapters/bun) and (Node.js with uWebSockets)(http://localhost:4000/adapters/node#uwebsockets).
> Native pub/sub is currently only available for [Bun](/adapters/bun) and [Node.js with uWebSockets](http://localhost:4000/adapters/node#uwebsockets).
```js
import { defineHooks } from "crossws";
Expand Down

0 comments on commit 54e0dca

Please sign in to comment.