Skip to content

Commit 43419e3

Browse files
authored
Add support for "parse" hook.
This is documentation for elysiajs/elysia#33 and can be merged after that.
1 parent ecd8131 commit 43419e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/patterns/websocket.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,11 @@ drain(
168168
): this
169169
```
170170

171+
## parse
172+
`Parse` middleware to parse the request before upgrading the HTTP connection to WebSocket.
173+
171174
## beforeHandle
172-
`Before Handle` middleware which execute before upgrade HTTP connection to WebSocket.
175+
`Before Handle` middleware which execute before upgrading the HTTP connection to WebSocket.
173176

174177
Ideal place for validation.
175178

0 commit comments

Comments
 (0)