Xin REST connection library
npm i xin-connect
Connection pool to connect to Web API.
- status: Number, (-1=Error, 0=Offline, 1=Connected)
- pingUrl: String
- pingFn: Function
- pingTimeout: Number(3000)
- pingRetry: Number(10000)
- baseUrl: String
- headers: Object
- #ping()
- #fetch(url, options)
- #getUrl(url)
- status-change
Fetch single url
- pool: Object
- url: String | URL
- value: Object
- #execute()
- #fetch()
- response
- error