diff options
author | 2023-08-25 21:08:41 -0700 | |
---|---|---|
committer | 2023-08-25 21:08:41 -0700 | |
commit | d98a93c3181426ea0565193303d3e63d3796231c (patch) | |
tree | 71a8d96bc4b75d902643ec877c03070cca8fcf45 /examples/bun-hot-websockets.js | |
parent | f70bb2497b2406e89afec3ee8a36a3b10ef66334 (diff) | |
download | bun-d98a93c3181426ea0565193303d3e63d3796231c.tar.gz bun-d98a93c3181426ea0565193303d3e63d3796231c.tar.zst bun-d98a93c3181426ea0565193303d3e63d3796231c.zip |
Automatically hot reload Bun.serve() (#4344)
* Automatically hot reload Bun.serve()
* Update doc
* Update example
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Diffstat (limited to 'examples/bun-hot-websockets.js')
-rw-r--r-- | examples/bun-hot-websockets.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/bun-hot-websockets.js b/examples/bun-hot-websockets.js index 7cdaf0f02..37d823a22 100644 --- a/examples/bun-hot-websockets.js +++ b/examples/bun-hot-websockets.js @@ -38,7 +38,7 @@ const styles = css` } `; -export default { +Bun.serve({ websocket: { message(ws, msg) { ws.send(styles); @@ -86,4 +86,4 @@ export default { }, ); }, -}; +}); |