scroll.io

1.0.6 • Public • Published

scroll.io

This module allows to share the same document and events scroll between all connected users. Scroll.io use "debug" module with "scroll" namespace

Updates

[2016/07/18] now support for ratio screen!. New examples. Fixes Doc.

install

$ npm install scroll.io

Run examples

Simple http server

$ cd scroll.io
$ node examples/http.js

open you browser and goto http://localhost:3058

Using own socket.io instance and redis (for balance).

Balance

If you want use AWS Balance, this is should be able using nginx: http://socket.io/docs/using-multiple-nodes/

example

const scrollio = require("scrollio");
const http = require("http");
const socket = require('socket.io');
const fs = require("fs");

const server  = http.createServer((req, res)=>{
    res.end(fs.readFileSync("./public/index.html"));
});

new scrollio(server);
server.listen(3000);

Readme

Keywords

Package Sidebar

Install

npm i scroll.io

Weekly Downloads

6

Version

1.0.6

License

ISC

Unpacked Size

135 kB

Total Files

10

Last publish

Collaborators

  • lortmorris