methodbun.SocketHandler.errorerror(socket: Socket<Data>,error: Error): void | Promise<void>;Called when a handler throws, and when an established TLS session fails (a record that does not decrypt, a fatal alert from the peer). After a TLS failure the socket closes, with or without this handler.Referenced typesinterface Errorcause?: unknownThe cause of the error.message: stringname: stringstack?: string
Called when a handler throws, and when an established TLS session fails (a record that does not decrypt, a fatal alert from the peer). After a TLS failure the socket closes, with or without this handler.