0.0.4 • Published 4 years ago

@capsulajs/capsulahub-service-connection v0.0.4

Weekly downloads
93
License
MIT
Repository
-
Last release
4 years ago

Connection service

The purpose of this service is to provide a utility tool that allows user to establish a communication a server for a provided protocol.

Install

NPM

To install the package from NPM registry you should run

yarn add @capsulajs/capsulahub-service-connection

or

npm install @capsulajs/capsulahub-service-connection

CDN

You can get the default export from the link

https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-connection/index.js

WorkspaceConfiguration example

{
  "services": [
    {
      "serviceName": "WebSocketConnectionService",
      "path": "https://capsulajs.s3.amazonaws.com/develop/capsulahub-service-connection/index.js",
      "definition": {
        "serviceName": "WebSocketConnectionService",
        "methods": {
          "open": { "asyncModel": "requestResponse" },
          "close": { "asyncModel": "requestResponse" },
          "send": { "asyncModel": "requestResponse" },
          "events$": { "asyncModel": "requestStream" }
        }
      },
      "config": {
        "provider": "websocket",
        "serviceName": "WebSocketConnectionService"
      }
    }
  ]
}

Exports

Default

Bootstrap function of the extension.

Named (API)

The public API of the extension.

API

CDN

The documentation about public API.

Local

Run

yarn doc

And open doc/index.html in browser.

Test

npm run test or yarn test

Licence

CapsulaHub and related services are released under MIT Licence.

Back to the Main Page

0.0.4-next.90

4 years ago

0.0.4-next.91

4 years ago

0.0.4

4 years ago

0.0.4-next.92

4 years ago

0.0.4-next.94

4 years ago

0.0.4-next.97

4 years ago

0.0.4-next.100

4 years ago

0.0.3

4 years ago

0.0.2-next.105

4 years ago

0.0.2

4 years ago

0.0.2-next.126

5 years ago

0.0.2-next.155

5 years ago

0.0.2-next.158

5 years ago

0.0.1

5 years ago