protophoenix

0.1.0 • Public • Published

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"
  });
});

Readme

Keywords

Package Sidebar

Install

npm i protophoenix

Weekly Downloads

0

Version

0.1.0

License

GPL-2.0

Last publish

Collaborators

  • m1ch3lcl