Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit d861434

Browse files
authored
Update README.md
1 parent 1097d4a commit d861434

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ For example, if you want to set the 'max_request':
113113
]
114114
```
115115

116-
`handlers`: Websocket handlers mapping for onMessage callback. Message frames from clients will be parsed by formatter first (`SwooleTW\Http\Websocket\Formatters\DefaultFormatter`). It will dispatch the logic to matched event name.
116+
`handlers`: Websocket handlers mapping for onMessage callback. Message frames from clients will be parsed by formatter first (`SwooleTW\Http\Websocket\Formatters\DefaultFormatter`). It will dispatch to matched handler by event name.
117117

118118
> By default raw frame data will be expected as: `{"event":"event_name","data":"data_content"}`. If no events name matched, it will call your `onMessage` function of `WebsocketHandler`
119119

0 commit comments

Comments
 (0)