0.5.8 • Published 1 year ago

@z1/preset-feathers-client-node v0.5.8

Weekly downloads
46
License
MIT
Repository
github
Last release
1 year ago

Z1 Preset Feathers Client for Node and Electron

Documentation under construction.

Dependencies

Usage

Install

yarn add @z1/preset-feathers-client-node

Import

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

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"
  }
});