1
0

add websocket support

This commit is contained in:
Connor McKelvey
2022-02-18 20:33:01 -07:00
parent 2437f82e94
commit ebabaf5362
3 changed files with 19 additions and 7 deletions

View File

@@ -138,11 +138,12 @@ Key | Type | Description
### `res`-Object
Key | Type | Description
--------- | ------------------- | -----------
`body` | `object` / `string` | Either set an `object` (will be converted to JSON) or a string
`headers` | `object` | Object you can set response headers in
`status` | `integer` | Return status code (default: `204`)
Key | Type | Description
----------- | ------------------- | -----------
`body` | `object` / `string` | Either set an `object` (will be converted to JSON) or a string
`headers` | `object` | Object you can set response headers in
`status` | `integer` | Return status code (default: `204`)
`webSocket` | `WebSocket` | Upgraded websocket connection
## Setup