clout-socket-io

    0.4.0 • Public • Published

    clout-socket-io NPM version Build Status

    Install

    In the directory of your clout-js application, do the following;

    1. Install this package
    npm install clout-socket-io
    1. Add this module to package.json or clout.json
    {
        ...
        "modules": ["clout-socket-io"]
        ...
    }

    Usage

    This module inject socket.io into clout and makes use of the express session. e.g.

    var clout = require('clout-js'),
        sio = clout.sio;
    
    sio.sockets.on("connection", function(socket) {
      socket.request.session // Express session is also available in Sockets!
      socket.logger // Clout logger are also exposed!
      socket.models // Clout models are here too!
    });
    

    Install

    npm i clout-socket-io

    DownloadsWeekly Downloads

    2

    Version

    0.4.0

    License

    MIT

    Unpacked Size

    1.64 MB

    Total Files

    59

    Last publish

    Collaborators

    • muhammaddadu