Skip to content
This repository was archived by the owner on Nov 22, 2019. It is now read-only.
This repository was archived by the owner on Nov 22, 2019. It is now read-only.

client side protocol #5

Open
Open
@sidorares

Description

@sidorares

I'd like to use this module as a client to vim agent (pretend I'm the vim). Currently VimClient is structured the way it's only can be used as server side end of client. I kind of still can use it, but I'd like to add proper client side protocol support. Would you be interested in PR adding this?

The code I tried to connect to vimnetbeans server:

var nb = require("./");
var net = require('net');

var socket = net.connect(3219);
var server = {
  _cleanupClient: function() {
    console.log('_cleanupClient', arguments);
  }
};
var client = new nb.VimClient(server, socket);
client.debug = true;
client.authed = true;

setTimeout(function() {
  console.log('Sending AUTH');
  socket.write('AUTH password\n');
}, 1000);

My use case: have Atom editor to connect to clewn / pyclewn

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions