@z1/preset-feathers-client
v0.5.8
Published
Can be used in both node and electron.
Downloads
32
Readme
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"
}
});