@z1/preset-feathers-client-node
v0.5.8
Published
Documentation under construction.
Downloads
7
Readme
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"
}
});