Socket
Book a DemoInstallSign in
Socket

@feathersjs/primus-client

Package Overview
Dependencies
Maintainers
4
Versions
54
Alerts
File Explorer

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

4.0.0-pre.3
Source
npmnpm
Version published
Weekly downloads
62
-24.39%
Maintainers
4
Weekly downloads
 
Created
Source

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

Keywords

feathers

FAQs

Package last updated on 01 Jun 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.