All Projects → feross → Chrome Net

feross / Chrome Net

Licence: mit
Use the Node `net` API in Chrome Apps

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Chrome Net

nc
Porting Netcat in Node.js. CLI util. 💻
Stars: ✭ 17 (-86.18%)
Mutual labels:  tcp, net
Mqttnet
MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker). The implementation is based on the documentation from http://mqtt.org/.
Stars: ✭ 2,486 (+1921.14%)
Mutual labels:  tcp, net
MQTTnet
MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker). The implementation is based on the documentation from http://mqtt.org/.
Stars: ✭ 3,309 (+2590.24%)
Mutual labels:  tcp, net
Stick
solution of "sticking packets" for TCP network transmission
Stars: ✭ 261 (+112.2%)
Mutual labels:  tcp, net
Hisocket
It is a lightweight client socket solution, you can used it in C# project or Unity3d
Stars: ✭ 275 (+123.58%)
Mutual labels:  tcp, net
Raft.net
Implementation of RAFT distributed consensus algorithm among TCP Peers on .NET / .NETStandard / .NETCore / dotnet
Stars: ✭ 112 (-8.94%)
Mutual labels:  tcp, net
Netcat
💻 Netcat client and server modules written in pure Javascript for Node.js.
Stars: ✭ 315 (+156.1%)
Mutual labels:  tcp, net
React Native Tcp Socket
React Native TCP socket API for Android, iOS & macOS with client SSL/TLS support
Stars: ✭ 112 (-8.94%)
Mutual labels:  tcp, net
Facebook adblock
An open-source Ad Blocker for Facebook™
Stars: ✭ 118 (-4.07%)
Mutual labels:  chrome-extension
Clamscan
A robust ClamAV virus scanning library supporting scanning files, directories, and streams with local sockets, local/remote TCP, and local clamscan/clamdscan binaries (with failover).
Stars: ✭ 121 (-1.63%)
Mutual labels:  tcp
Tcpdog
eBPF based TCP observability.
Stars: ✭ 119 (-3.25%)
Mutual labels:  tcp
Snapshooter
Snapshooter is a snapshot testing tool for .NET Core and .NET Framework
Stars: ✭ 118 (-4.07%)
Mutual labels:  net
Prime Player Google Play Music
Chrome extension for Google Play Music
Stars: ✭ 121 (-1.63%)
Mutual labels:  chrome-extension
Serverless To Cgi Bin
A browser extension that replaces occurrences of 'serverless' with 'cgi-bin'
Stars: ✭ 119 (-3.25%)
Mutual labels:  chrome-extension
Network Plus
DevTools for network recording, modification and resending.
Stars: ✭ 122 (-0.81%)
Mutual labels:  chrome-extension
Html5 Video Everywhere
Higher performance and stable video watching experience on the web
Stars: ✭ 118 (-4.07%)
Mutual labels:  chrome-extension
Editchromethemes
A guide to editing Chrome themes
Stars: ✭ 118 (-4.07%)
Mutual labels:  chrome-extension
Socket
Non-blocking socket and TLS functionality for PHP based on Amp.
Stars: ✭ 122 (-0.81%)
Mutual labels:  tcp
Nonstop
Nonstop 是一个 chrome 扩展,用于无感跳转到知乎,微博,简书,QQ 邮箱等无法直接跳转的外链,免去手动跳转的烦恼。
Stars: ✭ 122 (-0.81%)
Mutual labels:  chrome-extension
Acf Tools
Advanced Custom Fields code made simple! 🙌
Stars: ✭ 121 (-1.63%)
Mutual labels:  chrome-extension

chrome-net travis npm downloads javascript style guide

Use the Node net API in Chrome Apps

This module lets you use the Node.js net (TCP) API in Chrome Packaged Apps.

Instead of learning the quirks of Chrome's chrome.sockets API for networking in Chrome Apps just use the higher-level node API you're familiar with. Then, compile your code with browserify and you're all set!

install

npm install chrome-net

methods

Use node's net API, including all parameter list shorthands and variations.

Example TCP client:

var net = require('chrome-net')

var client = net.createConnection({
  port: 1337,
  host: '127.0.0.1'
})

client.write('beep')

client.on('data', function (data) {
  console.log(data)
})

// .pipe() streaming API works too!

Example TCP server:

var net = require('chrome-net')

var server = net.createServer()

server.on('listening', function () {
  console.log('listening')
})

server.on('connection', function (sock) {
  console.log('Connection from ' + sock.remoteAddress + ':' + sock.remotePort)
  sock.on('data', function (data) {
    console.log(data)
  })
})

server.listen(1337)

See nodejs.org for full API documentation: net

contribute

To run tests, use npm test. The tests will run TCP and UDP servers and launch a few different Chrome Packaged Apps with browserified client code. The tests currently require Chrome on Windows or Chrome Canary on Mac. If you're on Linux, feel free to send a pull request to fix this limitation.

license

MIT. Copyright (c) Feross Aboukhadijeh, John Hiesey & Jan Schär.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].