ricallinson / socket

Socket is a connect clone for TCP servers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Socket

Build Status

Socket is an extensible TCP server framework for node, shipping with several bundled middleware modules.

var socket = require('socket');
socket.createServer(
    socket.profiler(),
    socket.echo()
).listen(3357);

Installation

$ npm install socket

Middleware

  • echo simple echo server
  • json application/json parser
  • profiler per-request time and memory profiler
  • errorHandler flexible error handler

Inspiration

Socket is built on the ideas and code found in https://github.com/senchalabs/connect/.

About

Socket is a connect clone for TCP servers.


Languages

Language:JavaScript 98.4%Language:Shell 1.0%Language:Perl 0.5%