From 4bdb26adeda7a465abd7526c05b9a60f1d3b0429 Mon Sep 17 00:00:00 2001 From: Jeff Hykin Date: Fri, 29 Aug 2025 10:54:48 -0500 Subject: [PATCH] Fix typo in WebSocket message sending code --- src/websockets/controllers.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/websockets/controllers.md b/src/websockets/controllers.md index caf83db..5bde14d 100644 --- a/src/websockets/controllers.md +++ b/src/websockets/controllers.md @@ -74,7 +74,7 @@ We created the WebsocketController in a way to make *almost* permutable with the ```ts events.controller.ts @OnWebSocketMessage('events') handleEvent(@WebSocket() socket: WebSocketInstance) { - return socket.send(JSON.string({ topic: 'hello', data: name });; + return socket.send(JSON.string({ topic: 'hello', data: name })); } ``` @@ -110,4 +110,4 @@ Under the hood, we use Hono smart router on message topic. This mean that you ca - `'/user/:name'` - `'/posts/:id/comment/:comment_id'` - `'/api/animal/:type?'` -- `'/post/:date{[0-9]+}/:title{[a-z]+}'` \ No newline at end of file +- `'/post/:date{[0-9]+}/:title{[a-z]+}'`