0.1.0 • Published 9 years ago

protophoenix v0.1.0

Weekly downloads
2
License
GPL-2.0
Repository
github
Last release
9 years ago

phoenixproto

Adds phoenix protocol support to a net.Socket instance.

var net = require('net');
var protophoenix = require('protophoenix');

var server = net.connect({host: 127.0.0.1, port:5978}, function() {
  protophoenix(server);
  server.on('inf', function(params){
    console.log(params.name + ' : ' + params.description);
  });
  server.sendCommand('hsig', {
    username: "me",
    password: "pass"
  });
});