npm.io
0.0.4 • Published 9 years ago

parse-networking

Licence
MIT
Version
0.0.4
Deps
1
Vulns
0
Weekly
0

Parse networking

Parse Networking

Parse networking is a framework for socket.io which allows you to easily create a room-based websocket application.

Installation

Install the dependencies and devDependencies.

$ npm install --save parse-networking

Basic example

const express = require('express');
const http = require('http');
const parseNetwork = require('parse-networking');

var app = express();
var server = http.Server(app);
var parse = parseNetwork(server);

parse.on('connection', socket => {
    console.log(socket.id, 'connected.');
});

server.listen(3000, console.log('running on :3000'));
Documentation

See Parse.ws for the complete documentation.

Keywords