chrome-socket
chrome tcp socket interface with streaming powers
use
var Socket = ; // create a new tcp socket (not connected or listening yet)// socket is a stream and an event emittervar socket = ; socket; // socket has connectedsocket; socket; socket;
API
The API is modeled after node.js sockets. However, it emits and deals with ArrayBuffer
objects versus node Buffers
and provides no encoding. Encoding is provided by piping the socket to other streams.
methods
connect
write
end
events
connect
data
error
install
Use npm to install.
npm install chrome-socket