add websocket support
This commit is contained in:
11
README.md
11
README.md
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user