UNPKG

happn-primus

Version:

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

16 lines (12 loc) 401 B
'use strict'; // // Expose the module as new Transformer instance. // module.exports = require('../../transformer').extend({ // Creating a new real-time server. server: require('./server'), // The client-logic to connect with the a server. client: require('./client'), // The client-side library of engine.io. library: require('fs').readFileSync(__dirname + '/library.js', 'utf-8') });