@z1/preset-feathers-client

0.5.8 • Public • Published

Z1 Preset Feathers Client

Can be used in both node and electron.

Dependencies

Usage

Install

yarn add @z1/preset-feathers-client

Import

import {  
  Feathers,
  FeathersIO,
  FeathersAuth,
  IO
} from '@z1/preset-feathers-client'

Example

// Feathers
const app = Feathers();

// FeathersIO
app.configure(FeathersIO());

// FeathersAuth
const authentication = new FeathersAuth.AuthenticationService(app)
authentication.register('jwt', new FeathersAuth.JWTStrategy())

// IO
const socket = IO("http://localhost:3035", {
  reconnectionDelayMax: 10000,
  query: {
    auth: "123"
  }
});

Readme

Keywords

none

Package Sidebar

Install

npm i @z1/preset-feathers-client

Weekly Downloads

0

Version

0.5.8

License

MIT

Unpacked Size

10.5 kB

Total Files

4

Last publish

Collaborators

  • nubuck