# @verixyz/message-handler

> Message Handler plugin for verixyz

Latest version **2.0.0** (published 2022-05-30) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @verixyz/message-handler
pnpm add @verixyz/message-handler
yarn add @verixyz/message-handler
bun add @verixyz/message-handler
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2022-05-30 |
| First published | 2022-05-21 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 34 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jerry Zhang |
| Maintainers | jerry.zhang.bill |

## Links

- npm: https://www.npmjs.com/package/@verixyz/message-handler
- Repository: https://github.com/peopledata/verixyz
- Homepage: https://github.com/peopledata/verixyz#readme
- Issues: https://github.com/peopledata/verixyz/issues
- npm.io page: https://npm.io/package/@verixyz/message-handler

## Dependencies (1)

- [@verixyz/core](https://npm.io/package/@verixyz/core.md) ^1.3.3

## Recent versions

- 2.0.0 (latest) — 2022-05-30
- 1.3.4 — 2022-05-23
- 1.3.3 — 2022-05-21

## README

# verixyz Message Handler

This is a verixyz plugin that coordinates several `AbstractMessageHandler` implementations
to provide a `handleMessage` method to a verixyz agent.

## Classes

### AbstractMessageHandler	
An abstract class for creating MessageHandler 
plugins

> Properties

- nextMessageHandler: AbstractMessageHandler	

> Methods

- handle(message, context)		
- setNext(messageHandler)		

### Message	

> Constructors

- (constructor)(data)		
Constructs a new instance of the Message class

> Properties

- createdAt: string	
- credentials: VerifiableCredential []	
- data: any	
- expiresAt: string	
- from: string	
- id:	string	
- metaData: IMetaData []	
- presentations: VerifiablePresentation []	
- raw: string	
- replyTo: string[]	
- replyUrl: string	
- threadId: string	
- to: string	
- type: string	

> Methods

- addMetaData(meta)		
- getLastMetaData()		
- isValid()		

### MessageHandler	
Agent plugin that provides IMessageHandler methods

> Constructors

- (constructor)(options)		
Constructs a new instance of the MessageHandler class

> Properties

- methods: IMessageHandler	
Plugin methods

- schema: any	

> Methods

- handleMessage(args, context)		
    Parses and - optionally saves a message

---
_Source: https://npm.io/package/@verixyz/message-handler · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
