error() function
'error' event occurs each time connection error is happened
Signature:
export declare function error(err: Error): void;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
err |
Error |
error occurred during connection |
Returns:
void
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.