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

primus

Package Overview
Dependencies
Maintainers
6
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

primus

Primus is a simple abstraction around real-time frameworks. It allows you to easily switch between different frameworks without any code changes.

  • 3.1.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9K
increased by1.3%
Maintainers
6
Weekly downloads
 
Created
Source

Transformer: SockJS

A transformer abstraction for the SockJS framework. To enable this transformer inside of Primus you need to add sockjs to your package.json:

npm install sockjs --save

And tell primus to use sockjs as transformer.

var Primus = require('primus');

var primus = new Primus(server, { transformer: 'sockjs' });

primus.on('connection', function connection(spark) {

});

Compiling the SockJS library

To build the library use the update.sh utility. The steps required are the following:

  1. Fork or clone Primus
  2. cd in the directory and run npm install
  3. cd in the directory transformers/sockjs/ and run ./update.sh
  4. Commit the changes to the Primus main repository
  5. Profit

Keywords

FAQs

Package last updated on 11 Jun 2015

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc