Novelty Promotes Magicians
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

@feathersjs/primus-client

1.1.7 • Public • Published

@feathersjs/primus-client

Build Status Dependency Status Download Status

Client services for Primus and feathers-primus

Installation

npm install @feathersjs/primus-client --save

Quick usage:

const feathers = require('@feathersjs/feathers');
const primus = require('@feathersjs/primus-client');
const socket = new Primus('http://api.my-feathers-server.com');
 
const app = feathers();
 
app.configure(primus(socket));
 
// Receive real-time events through Primus
app.service('messages')
  .on('created', message => console.log('New message created', message));
 
// Call the `messages` service
app.service('messages').create({
  text: 'A message from a REST client'
});

Documentation

Please refer to the @feathersjs/primus-client documentation for more details.

License

Copyright (c) 2018

Licensed under the MIT license.

install

npm i @feathersjs/primus-client

Downloadsweekly downloads

1,497

version

1.1.7

license

MIT

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability