New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@feathersjs/primus-client

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feathersjs/primus-client

Client services for Primus and feathers-primus


Version published
Weekly downloads
696
increased by7.74%
Maintainers
4
Weekly downloads
 
Created

@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.

FAQs

Package last updated on 02 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts