Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    dialogopublic

    Dialogo

    (spanish for dialogue) "to discuss areas of disagreement frankly in order to resolve them." -- Dictionary.com

    Dialogue supports realtime collaboration apps. It's an Javascript implementation Differential Synchronization that works on browsers and node.js.

    Installation

    npm install dialogo

    Specs

    Specs (built using mocha.js) run on travis-ci: Build Status

    you can test them using npm test, or on browsers opening Test page

    Introductory Examples

    on server:

        var dialogo = require('dialogo').create();
     
        dialogo.documents.add('main', {
            mountains: 4,
            lake: {
                color: 'blue',
                depth: 34
            }
        });
     
        var io = require('socket.io').listen(80);
        dialogo.connect(io);

    on clients:

        var socket = io.connect('http://localhost');
        var main = dialogo.create();
        main.connect(socket);
        main.open('main');
        main.document.mountains = 5;

    License

    The MIT License (MIT)

    Copyright (c) 2013 Benjamin Eidelman (@beneidel)

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    Keywords

    none

    install

    npm i dialogo

    Downloadsweekly downloads

    2

    version

    0.0.1

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar