Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reekoheek/xin-connect
Xin REST Connection Library
https://github.com/reekoheek/xin-connect
Last synced: 1 day ago
JSON representation
Xin REST Connection Library
- Host: GitHub
- URL: https://github.com/reekoheek/xin-connect
- Owner: reekoheek
- License: mit
- Created: 2017-01-26T04:27:33.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-26T09:26:50.000Z (almost 6 years ago)
- Last Synced: 2024-09-17T10:27:36.936Z (about 2 months ago)
- Language: JavaScript
- Size: 163 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-xinix - xin-connect - Xin REST connection component - [reekoheek](https://github.com/reekoheek) (Grouping / Xin)
README
# xin-connect
Xin REST connection library
```sh
npm i xin-connect
```## connect-pool
Connection pool to connect to Web API.
### Properties
- status: Number, (-1=Error, 0=Offline, 1=Connected)
- pingUrl: String
- pingFn: Function
- pingTimeout: Number(3000)
- pingRetry: Number(10000)
- baseUrl: String
- headers: Object### Methods
- #ping()
- #fetch(url, options)
- #getUrl(url)### Events
- status-change
## connect-fetch
Fetch single url
### Properties
- pool: Object
- url: String | URL
- value: Object### Methods
- #execute()
- #fetch()### Events
- response
- error