Constructor
new WebSocketResponse(ws)
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
ws |
object | WebSocket connection |
Extends
- http.ServerResponse
Methods
end(chunk, encodingopt)
- Description:
Override end to send via web socket
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
chunk |
string | Buffer | Uint8Array | ||
encoding |
string |
<optional> |