Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
interface-connection
Advanced tools
A test suite and interface you can use to implement a connection interface.
A test suite and interface you can use to implement a connection. A connection is understood as something that offers mechanism for writing and reading data, back pressure, half and full duplex streams. This module and test suite were heavily inspired by abstract-blob-store and interface-stream-muxer.
The primary goal of module is to enable developers to pick, swap or upgrade their connection without loosing the same API expectations and mechanisms such as back pressure and the hability to half close a connection.
Publishing a test suite as a module lets multiple modules all ensure compatibility since they use the same test suite.
The API is presented with both Node.js and Go primitives, however, there is not actual limitations for it to be extended for any other language, pushing forward the cross compatibility and interop through diferent stacks.
IMPORTANT - Tests are still not finished nor the interface
Include this badge in your readme if you make a module that is compatible with the interface-connection API. You can validate this by running the tests.
var tape = require('tape')
var tests = require('interface-connection/tests')
var YourConnectionHandler = require('../src')
var common = {
setup: function (t, cb) {
cb(null, YourConnectionHandler)
},
teardown: function (t, cb) {
cb()
}
}
tests(tape, common)
WIP
A valid (read: that follows this abstraction) connection, must implement the following API.
notes:
0.0.3 (2015-12-12)
<a name="0.0.1"></a>
FAQs
A test suite and interface you can use to implement a connection interface.
The npm package interface-connection receives a total of 58 weekly downloads. As such, interface-connection popularity was classified as not popular.
We found that interface-connection demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.