lore-hook-websockets

WARNING! This hook is a proof of concept, and has never been used in a production application. It was developed to prove that Lore's architecture accounted for the unique concerns that come with using websockets in a real application, and to find an interface that was agnostic to a specific implementation of websockets (e.g. Sails, Rails, Socket.io, etc.)

Provides a generic implementation of lore-websockets intended to be customized.

Installation

First install the hook:

npm install lore-hook-websockets --save

Then add the hook to your index.js file.

// index.js
import collections from 'lore-hook-collections';
import models from 'lore-hook-models';
import redux from 'lore-hook-redux';
import websockets from 'lore-hook-websockets';

lore.summon({
  hooks: {
    collections,
    models,
    redux,
    websockets
  }
});