DevtoolsSocketEventData
The data of every socket event
Import
import { DevtoolsSocketEventData } from "@hyper-fetch/plugin-devtools"
Source
Package
Preview
type DevtoolsSocketEventData = {
adapterName: string;
attempts?: number;
data?: unknown;
error?: { message: string; name: string } | unknown;
extra?: unknown;
socketId: string;
status?: DevtoolsSocketStatus;
timestamp: number;
topic?: string;
url: string;
}
Structure
DevtoolsSocketEventData
| Name | Type | Description |
|---|---|---|
| adapterName | | |
| attempts | | Reconnection attempt |
| data | | Received data or sent payload |
| error | | |
| extra | | Adapter details of a received message |
| socketId | | Identifies the socket within the application |
| status | | State of the socket after the event, set on
|
| timestamp | | When it happened in the application |
| topic | | |
| url | |

