Skip to content

Commit 8c75c77

Browse files
committed
Update http.md
1 parent 1da2f4c commit 8c75c77

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/api/http.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,8 @@ const server = Bun.serve({
677677
});
678678
```
679679

680+
## WebSocket Configuration
681+
680682
### server.publish(topic, data, compress) - WebSocket Message Publishing
681683

682684
The server can publish messages to all WebSocket clients subscribed to a topic:
@@ -702,8 +704,6 @@ The `publish()` method returns:
702704
- `0` if the message was dropped
703705
- `-1` if backpressure was applied
704706

705-
## WebSocket Configuration
706-
707707
### WebSocket Handler Options
708708

709709
When configuring WebSockets, several advanced options are available through the `websocket` handler:

0 commit comments

Comments
 (0)