Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/websockets/controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }));
}
```

Expand Down Expand Up @@ -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]+}'`
- `'/post/:date{[0-9]+}/:title{[a-z]+}'`