aboutsummaryrefslogtreecommitdiff
path: root/examples/bun-hot-websockets.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bun-hot-websockets.js')
-rw-r--r--examples/bun-hot-websockets.js4
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 {
},
);
},
-};
+});