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]+}'`