primus icon indicating copy to clipboard operation
primus copied to clipboard

[MOVED] The Feathers Primus websocket transport plugin

@feathersjs/primus

Important: The code for this module has been moved into the main Feathers repository at feathersjs/feathers (package direct link). Please open issues and pull requests there. No changes in your existing Feathers applications are necessary.

Build Status

The Feathers Primus real-time API provider

Installation

npm install @feathersjs/primus --save

Quick example

const feathers = require('@feathersjs/feathers');
const primus = require('@feathersjs/primus');

const app = feathers();

// Set up Primus with SockJS
app.configure(primus({ transformer: 'ws' }));

app.listen(3030);

Documentation

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

License

Copyright (c) 2018

Licensed under the MIT license.