0.0.4 • Published 7 years ago

parse-networking v0.0.4

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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.