New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

backpassage

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backpassage

A TCP/TLS communications system styled after socket.io, aimed at bidirectional inter-server communications.

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

BackPassage

A Node.js TCP/TLS communications system styled after socket.io, aimed at bidirectional inter-server communications.

Also butts.

>>> UNSTABLE, MIGHT SHIT ALL OVER <<<

Install

(soon, but not yet)

$ npm install backpassage

Test

I haven't written the tests yet, but they will be written using Mocha and Should.

Use

Using this is incredibly easy, having an API based on a combination of EventEmitters and TCP Sockets.

Example

The following example shows the two ends of a connection, the client and server, setting up a connection, then creating an annoying feedback loop.

Server Server

var backpassage = require('backpassage');

backpassage.createServer(function (socket) {
	console.log('connected');
	socket.on('probe', function () {
		socket.emit('accept');
	});
}).listen(4567);

Client Server

var backpassage = require('backpassage');
var client = backpassage.createConnection(4567);

client.emit('probe');
client.on('accept', function () {
	client.emit('probe');
});

FAQs

Package last updated on 21 Jul 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts