0.8.2 • Published 9 years ago

websocket-conference-server v0.8.2

Weekly downloads
5
License
FreeBSD
Repository
github
Last release
9 years ago

WebSocket Conference Server

A simple out of the box HTTP & WebSocket server for multiple connection sessions. Leverages the very excellent websocket module to make a plug and play conference style server.

While little more than an abstracion layer on top of websocket it enables me to rapidly prototype by setting up a new server by:

>> Spin up AWS EC2 instance (Arch Linux - core only + ssh) 
>> pacman -S nodejs 
>> npm install websocket-conference-server 
>> node
>> require('websocket-conference-server').start()

...and its ready to server http files, and host a WebSocket conference.

It's then easily customisable by passing optional config object and custom_utilities.js which I need to get around to document but should be fairly clear from the source code.

Installing the module

With npm:

npm install websocket-conference-server

Quick usage:

var server = require('websocket-conference-server').start();

Defaults to listening on port 8000, for echo-protocol, with logging set to full console debug but no file system records.

All http requests will be served from current directory.

Custom usage:

var server = require('websocket-conference-server');

// -- Set the optional configuration
var config = {
	verbosity 	: 1,
	protocol 	: my-custom-protocol,
	port 		: 8001,
	logs_path 	    : 'Logs/',
    IP_lookup_path  : 'IPs/',
	logs_suffix : '-alpha.log',
    http_paths  : {
        'ico'   : '../Assets',
        'jpg'   : '../Assets',
        'png'   : '../Assets',
        'html'  : '..',
        'css'   : '..',
        'js'    : '..'  
    }
};
// --

// -- Import any custom handlers, functions
var custom_utilities = require("./my_custom_utilities");
// This should accept, augment and return the utilities object, eg:
// utilities = custom_utilities.augment(utilities);
// --

// -- Boot conference server with custom options, protocol and functions 
server.start( config , custom_utilities );
// --

Patches & Feedback:

https://github.com/FreeLiveTutor/websocket-conference-server

0.8.2

9 years ago

0.8.1

9 years ago

0.8.0

9 years ago

0.7.1

10 years ago

0.7.0

10 years ago

0.6.0

10 years ago

0.5.8

10 years ago

0.5.7

10 years ago

0.5.6

10 years ago

0.5.5

10 years ago

0.5.4

10 years ago

0.5.3

11 years ago

0.5.2

11 years ago

0.5.0

11 years ago

0.4.5

11 years ago

0.4.4

11 years ago

0.4.3

11 years ago

0.4.2

11 years ago

0.4.1

11 years ago

0.4.0

11 years ago

0.3.21

11 years ago

0.3.20

11 years ago

0.3.19

11 years ago

0.3.18

11 years ago

0.3.16

11 years ago

0.3.14

11 years ago

0.3.12

11 years ago

0.3.11

11 years ago

0.3.10

11 years ago

0.3.9

11 years ago

0.3.7

11 years ago

0.3.6

11 years ago

0.3.5

11 years ago

0.3.4

11 years ago

0.3.3

11 years ago

0.3.2

11 years ago

0.3.1

11 years ago

0.3.0

11 years ago

0.2.33

11 years ago

0.2.32

11 years ago

0.2.31

11 years ago

0.2.30

11 years ago

0.2.29

11 years ago

0.2.28

11 years ago

0.2.27

11 years ago

0.2.26

11 years ago

0.2.25

11 years ago

0.2.24

11 years ago

0.2.23

11 years ago

0.2.22

11 years ago

0.2.21

11 years ago

0.2.19

11 years ago

0.2.18

11 years ago

0.2.17

11 years ago

0.2.16

11 years ago

0.2.15

11 years ago

0.2.14

11 years ago

0.2.13

11 years ago

0.2.12

11 years ago

0.2.11

11 years ago

0.2.10

11 years ago

0.2.9

11 years ago

0.2.8

11 years ago

0.2.7

11 years ago

0.2.6

11 years ago

0.2.5

11 years ago

0.2.4

11 years ago

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.1.10

11 years ago

0.1.9

11 years ago

0.1.8

11 years ago

0.1.7

11 years ago

0.1.6

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago