createSocketReporter
Reports what happens to one socket: its connection, the messages it receives and sends, and its errors. Returns the snapshot to send whenever HyperFlow connects, and the cleanup.
Import
import { createSocketReporter } from "@hyper-fetch/plugin-devtools"
Source
Package
Parameters
createSocketReporter(__namedParameters: { report: Report; socket: SocketInstance; socketId: string })
Parameters
| Name | Type | Description |
|---|---|---|
| __namedParameters | |
Returns
createSocketReporter
| Name | Type | Description |
|---|---|---|
| sendSnapshot | | Tells HyperFlow about the socket and its current state |
| unmount | |

