# Callback on offline Plugin Readme

## Overview

Plugin intercepts messages and checks if recipient is available. If not, plugin sends async POST request with JSON body to defined url.

Example JSON body:

                {
                    "token":"21uh9d1h91d",
                    "from":"user@mychatapp.com",
                    "to":"user123@mychatapp.com",
                    "body":"Message body, so what user's typed"
                }

## Callback properties

There are few properties that can be defined to change plugin behaviour:

- `plugin.callback_on_offline.debug` - enable debug logs. If something doesn't work set property to true
- `plugin.callback_on_offline.url` - url that will be called
- `plugin.callback_on_offline.token` - token to be send with request
- `plugin.callback_on_offline.send_body` - boolean value to determine if message's body will be send. True by default.